home *** CD-ROM | disk | FTP | other *** search
Wrap
Text File | 1997-02-26 | 141.8 KB | 6,245 lines | [ TEXT/MPS ]
; ; File: QuickTimeComponents.a ; ; Contains: QuickTime interfaces ; ; Version: Technology: ; Release: QuickTime 2.5 interfaces to use with ETO #20 ; ; Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved. ; ; Bugs?: If you find a problem with this file, send the file and version ; information (from above) and the problem description to: ; ; Internet: apple.bugs@applelink.apple.com ; AppleLink: APPLE.BUGS ; ; IF &TYPE('__QUICKTIMECOMPONENTS__') = 'UNDEFINED' THEN __QUICKTIMECOMPONENTS__ SET 1 IF &TYPE('__COMPONENTS__') = 'UNDEFINED' THEN include 'Components.a' ENDIF IF &TYPE('__IMAGECOMPRESSION__') = 'UNDEFINED' THEN include 'ImageCompression.a' ENDIF IF &TYPE('__MOVIES__') = 'UNDEFINED' THEN include 'Movies.a' ENDIF IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN include 'Quickdraw.a' ENDIF IF &TYPE('__VIDEO__') = 'UNDEFINED' THEN include 'Video.a' ENDIF IF &TYPE('__MEMORY__') = 'UNDEFINED' THEN include 'Memory.a' ENDIF IF &TYPE('__SOUND__') = 'UNDEFINED' THEN include 'Sound.a' ENDIF IF &TYPE('__QUICKTIMEMUSIC__') = 'UNDEFINED' THEN include 'QuickTimeMusic.a' ENDIF clockComponentType EQU 'clok' systemTickClock EQU 'tick' ; subtype: 60ths since boot systemSecondClock EQU 'seco' ; subtype: seconds since 1904 systemMillisecondClock EQU 'mill' ; subtype: 1000ths since boot systemMicrosecondClock EQU 'micr' ; subtype: 1000000ths since boot kClockRateIsLinear EQU 1 kClockImplementsCallBacks EQU 2 ; * These are Clock procedures * ; ; pascal ComponentResult ClockGetTime(ComponentInstance aClock, TimeRecord *out) ; IF ¬ GENERATINGCFM THEN Macro _ClockGetTime dc.w $2F3C dc.w $0004 dc.w $0001 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION ClockGetTime ENDIF ; ; pascal QTCallBack ClockNewCallBack(ComponentInstance aClock, TimeBase tb, short callBackType) ; IF ¬ GENERATINGCFM THEN Macro _ClockNewCallBack dc.w $2F3C dc.w $0006 dc.w $0002 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION ClockNewCallBack ENDIF ; ; pascal ComponentResult ClockDisposeCallBack(ComponentInstance aClock, QTCallBack cb) ; IF ¬ GENERATINGCFM THEN Macro _ClockDisposeCallBack dc.w $2F3C dc.w $0004 dc.w $0003 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION ClockDisposeCallBack ENDIF ; ; pascal ComponentResult ClockCallMeWhen(ComponentInstance aClock, QTCallBack cb, long param1, long param2, long param3) ; IF ¬ GENERATINGCFM THEN Macro _ClockCallMeWhen dc.w $2F3C dc.w $0010 dc.w $0004 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION ClockCallMeWhen ENDIF ; ; pascal ComponentResult ClockCancelCallBack(ComponentInstance aClock, QTCallBack cb) ; IF ¬ GENERATINGCFM THEN Macro _ClockCancelCallBack dc.w $2F3C dc.w $0004 dc.w $0005 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION ClockCancelCallBack ENDIF ; ; pascal ComponentResult ClockRateChanged(ComponentInstance aClock, QTCallBack cb) ; IF ¬ GENERATINGCFM THEN Macro _ClockRateChanged dc.w $2F3C dc.w $0004 dc.w $0006 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION ClockRateChanged ENDIF ; ; pascal ComponentResult ClockTimeChanged(ComponentInstance aClock, QTCallBack cb) ; IF ¬ GENERATINGCFM THEN Macro _ClockTimeChanged dc.w $2F3C dc.w $0004 dc.w $0007 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION ClockTimeChanged ENDIF ; ; pascal ComponentResult ClockSetTimeBase(ComponentInstance aClock, TimeBase tb) ; IF ¬ GENERATINGCFM THEN Macro _ClockSetTimeBase dc.w $2F3C dc.w $0004 dc.w $0008 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION ClockSetTimeBase ENDIF ; ; pascal ComponentResult ClockStartStopChanged(ComponentInstance aClock, QTCallBack cb, Boolean startChanged, Boolean stopChanged) ; IF ¬ GENERATINGCFM THEN Macro _ClockStartStopChanged dc.w $2F3C dc.w $0008 dc.w $0009 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION ClockStartStopChanged ENDIF ; ; pascal ComponentResult ClockGetRate(ComponentInstance aClock, Fixed *rate) ; IF ¬ GENERATINGCFM THEN Macro _ClockGetRate dc.w $2F3C dc.w $0004 dc.w $000A moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION ClockGetRate ENDIF StandardCompressionType EQU 'scdi' StandardCompressionSubType EQU 'imag' ; Preference flags. scListEveryCodec EQU $00000002 scAllowZeroFrameRate EQU $00000004 scAllowZeroKeyFrameRate EQU $00000008 scShowBestDepth EQU $00000010 scUseMovableModal EQU $00000020 ; Possible test flags for setting test image. scPreferCropping EQU $01 scPreferScaling EQU $02 scPreferScalingAndCropping EQU $03 ; Dimensions of the image preview box. scTestImageWidth EQU 80 scTestImageHeight EQU 80 ; Possible items returned by hookProc. scOKItem EQU 1 scCancelItem EQU 2 scCustomItem EQU 3 ; Result returned when user cancelled. scUserCancelled EQU 1 ; Get/SetInfo structures. SCSpatialSettings RECORD 0 codecType ds.l 1 ; offset: $0 (0) codec ds.l 1 ; offset: $4 (4) depth ds.w 1 ; offset: $8 (8) spatialQuality ds.l 1 ; offset: $A (10) sizeof EQU * ; size: $E (14) ENDR SCTemporalSettings RECORD 0 temporalQuality ds.l 1 ; offset: $0 (0) frameRate ds.l 1 ; offset: $4 (4) keyFrameRate ds.l 1 ; offset: $8 (8) sizeof EQU * ; size: $C (12) ENDR SCDataRateSettings RECORD 0 dataRate ds.l 1 ; offset: $0 (0) frameDuration ds.l 1 ; offset: $4 (4) minSpatialQuality ds.l 1 ; offset: $8 (8) minTemporalQuality ds.l 1 ; offset: $C (12) sizeof EQU * ; size: $10 (16) ENDR SCExtendedProcs RECORD 0 filterProc ds.l 1 ; offset: $0 (0) hookProc ds.l 1 ; offset: $4 (4) refcon ds.l 1 ; offset: $8 (8) customName ds Str31 ; offset: $C (12) sizeof EQU * ; size: $2C (44) ENDR ; Get/SetInfo selectors scSpatialSettingsType EQU 'sptl' ; pointer to SCSpatialSettings struct scTemporalSettingsType EQU 'tprl' ; pointer to SCTemporalSettings struct scDataRateSettingsType EQU 'drat' ; pointer to SCDataRateSettings struct scColorTableType EQU 'clut' ; pointer to CTabHandle scProgressProcType EQU 'prog' ; pointer to ProgressRecord struct scExtendedProcsType EQU 'xprc' ; pointer to SCExtendedProcs struct scPreferenceFlagsType EQU 'pref' ; pointer to long scSettingsStateType EQU 'ssta' ; pointer to Handle scSequenceIDType EQU 'sequ' ; pointer to ImageSequence scWindowPositionType EQU 'wndw' ; pointer to Point scCodecFlagsType EQU 'cflg' ; pointer to CodecFlags scCodecSettingsType EQU 'cdec' ; pointer to Handle scForceKeyValueType EQU 'ksim' ; pointer to long ; scTypeNotFoundErr returned by Get/SetInfo when type cannot be found. SCParams RECORD 0 flags ds.l 1 ; offset: $0 (0) theCodecType ds.l 1 ; offset: $4 (4) theCodec ds.l 1 ; offset: $8 (8) spatialQuality ds.l 1 ; offset: $C (12) temporalQuality ds.l 1 ; offset: $10 (16) depth ds.w 1 ; offset: $14 (20) frameRate ds.l 1 ; offset: $16 (22) keyFrameRate ds.l 1 ; offset: $1A (26) reserved1 ds.l 1 ; offset: $1E (30) reserved2 ds.l 1 ; offset: $22 (34) sizeof EQU * ; size: $26 (38) ENDR scGetCompression EQU 1 scShowMotionSettings EQU $00000001 scSettingsChangedItem EQU -1 scCompressFlagIgnoreIdenticalFrames EQU 1 ; * These are Progress procedures * ; ; pascal ComponentResult SCGetCompressionExtended(ComponentInstance ci, SCParams *params, Point where, SCModalFilterUPP filterProc, SCModalHookUPP hookProc, long refcon, StringPtr customName) ; IF ¬ GENERATINGCFM THEN Macro _SCGetCompressionExtended dc.w $2F3C dc.w $0018 dc.w $0001 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SCGetCompressionExtended ENDIF ; ; pascal ComponentResult SCPositionRect(ComponentInstance ci, Rect *rp, Point *where) ; IF ¬ GENERATINGCFM THEN Macro _SCPositionRect dc.w $2F3C dc.w $0008 dc.w $0002 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SCPositionRect ENDIF ; ; pascal ComponentResult SCPositionDialog(ComponentInstance ci, short id, Point *where) ; IF ¬ GENERATINGCFM THEN Macro _SCPositionDialog dc.w $2F3C dc.w $0006 dc.w $0003 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SCPositionDialog ENDIF ; ; pascal ComponentResult SCSetTestImagePictHandle(ComponentInstance ci, PicHandle testPict, Rect *testRect, short testFlags) ; IF ¬ GENERATINGCFM THEN Macro _SCSetTestImagePictHandle dc.w $2F3C dc.w $000A dc.w $0004 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SCSetTestImagePictHandle ENDIF ; ; pascal ComponentResult SCSetTestImagePictFile(ComponentInstance ci, short testFileRef, Rect *testRect, short testFlags) ; IF ¬ GENERATINGCFM THEN Macro _SCSetTestImagePictFile dc.w $2F3C dc.w $0008 dc.w $0005 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SCSetTestImagePictFile ENDIF ; ; pascal ComponentResult SCSetTestImagePixMap(ComponentInstance ci, PixMapHandle testPixMap, Rect *testRect, short testFlags) ; IF ¬ GENERATINGCFM THEN Macro _SCSetTestImagePixMap dc.w $2F3C dc.w $000A dc.w $0006 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SCSetTestImagePixMap ENDIF ; ; pascal ComponentResult SCGetBestDeviceRect(ComponentInstance ci, Rect *r) ; IF ¬ GENERATINGCFM THEN Macro _SCGetBestDeviceRect dc.w $2F3C dc.w $0004 dc.w $0007 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SCGetBestDeviceRect ENDIF ; ; pascal ComponentResult SCRequestImageSettings(ComponentInstance ci) ; IF ¬ GENERATINGCFM THEN Macro _SCRequestImageSettings dc.w $2F3C dc.w $0000 dc.w $000A moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SCRequestImageSettings ENDIF ; ; pascal ComponentResult SCCompressImage(ComponentInstance ci, PixMapHandle src, const Rect *srcRect, ImageDescriptionHandle *desc, Handle *data) ; IF ¬ GENERATINGCFM THEN Macro _SCCompressImage dc.w $2F3C dc.w $0010 dc.w $000B moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SCCompressImage ENDIF ; ; pascal ComponentResult SCCompressPicture(ComponentInstance ci, PicHandle srcPicture, PicHandle dstPicture) ; IF ¬ GENERATINGCFM THEN Macro _SCCompressPicture dc.w $2F3C dc.w $0008 dc.w $000C moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SCCompressPicture ENDIF ; ; pascal ComponentResult SCCompressPictureFile(ComponentInstance ci, short srcRefNum, short dstRefNum) ; IF ¬ GENERATINGCFM THEN Macro _SCCompressPictureFile dc.w $2F3C dc.w $0004 dc.w $000D moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SCCompressPictureFile ENDIF ; ; pascal ComponentResult SCRequestSequenceSettings(ComponentInstance ci) ; IF ¬ GENERATINGCFM THEN Macro _SCRequestSequenceSettings dc.w $2F3C dc.w $0000 dc.w $000E moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SCRequestSequenceSettings ENDIF ; ; pascal ComponentResult SCCompressSequenceBegin(ComponentInstance ci, PixMapHandle src, const Rect *srcRect, ImageDescriptionHandle *desc) ; IF ¬ GENERATINGCFM THEN Macro _SCCompressSequenceBegin dc.w $2F3C dc.w $000C dc.w $000F moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SCCompressSequenceBegin ENDIF ; ; pascal ComponentResult SCCompressSequenceFrame(ComponentInstance ci, PixMapHandle src, const Rect *srcRect, Handle *data, long *dataSize, short *notSyncFlag) ; IF ¬ GENERATINGCFM THEN Macro _SCCompressSequenceFrame dc.w $2F3C dc.w $0014 dc.w $0010 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SCCompressSequenceFrame ENDIF ; ; pascal ComponentResult SCCompressSequenceEnd(ComponentInstance ci) ; IF ¬ GENERATINGCFM THEN Macro _SCCompressSequenceEnd dc.w $2F3C dc.w $0000 dc.w $0011 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SCCompressSequenceEnd ENDIF ; ; pascal ComponentResult SCDefaultPictHandleSettings(ComponentInstance ci, PicHandle srcPicture, short motion) ; IF ¬ GENERATINGCFM THEN Macro _SCDefaultPictHandleSettings dc.w $2F3C dc.w $0006 dc.w $0012 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SCDefaultPictHandleSettings ENDIF ; ; pascal ComponentResult SCDefaultPictFileSettings(ComponentInstance ci, short srcRef, short motion) ; IF ¬ GENERATINGCFM THEN Macro _SCDefaultPictFileSettings dc.w $2F3C dc.w $0004 dc.w $0013 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SCDefaultPictFileSettings ENDIF ; ; pascal ComponentResult SCDefaultPixMapSettings(ComponentInstance ci, PixMapHandle src, short motion) ; IF ¬ GENERATINGCFM THEN Macro _SCDefaultPixMapSettings dc.w $2F3C dc.w $0006 dc.w $0014 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SCDefaultPixMapSettings ENDIF ; ; pascal ComponentResult SCGetInfo(ComponentInstance ci, OSType infoType, void *info) ; IF ¬ GENERATINGCFM THEN Macro _SCGetInfo dc.w $2F3C dc.w $0008 dc.w $0015 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SCGetInfo ENDIF ; ; pascal ComponentResult SCSetInfo(ComponentInstance ci, OSType infoType, void *info) ; IF ¬ GENERATINGCFM THEN Macro _SCSetInfo dc.w $2F3C dc.w $0008 dc.w $0016 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SCSetInfo ENDIF ; ; pascal ComponentResult SCNewGWorld(ComponentInstance ci, GWorldPtr *gwp, Rect *rp, GWorldFlags flags) ; IF ¬ GENERATINGCFM THEN Macro _SCNewGWorld dc.w $2F3C dc.w $000C dc.w $0017 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SCNewGWorld ENDIF ; ; pascal ComponentResult SCSetCompressFlags(ComponentInstance ci, long flags) ; IF ¬ GENERATINGCFM THEN Macro _SCSetCompressFlags dc.w $2F3C dc.w $0004 dc.w $0018 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SCSetCompressFlags ENDIF ; ; pascal ComponentResult SCGetCompressFlags(ComponentInstance ci, long *flags) ; IF ¬ GENERATINGCFM THEN Macro _SCGetCompressFlags dc.w $2F3C dc.w $0004 dc.w $0019 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SCGetCompressFlags ENDIF TweenComponentType EQU 'twen' ; typedef ComponentInstance TweenerComponent TweenRecord RECORD 0 version ds.l 1 ; offset: $0 (0) container ds.l 1 ; offset: $4 (4) tweenAtom ds.l 1 ; offset: $8 (8) dataAtom ds.l 1 ; offset: $C (12) percent ds.l 1 ; offset: $10 (16) dataProc ds.l 1 ; offset: $14 (20) private1 ds.l 1 ; offset: $18 (24) private2 ds.l 1 ; offset: $1C (28) sizeof EQU * ; size: $20 (32) ENDR ; ; pascal ComponentResult TweenerInitialize(TweenerComponent tc, QTAtomContainer container, QTAtom tweenAtom, QTAtom dataAtom) ; IF ¬ GENERATINGCFM THEN Macro _TweenerInitialize dc.w $2F3C dc.w $000C dc.w $0001 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION TweenerInitialize ENDIF ; ; pascal ComponentResult TweenerDoTween(TweenerComponent tc, TweenRecord *tr) ; IF ¬ GENERATINGCFM THEN Macro _TweenerDoTween dc.w $2F3C dc.w $0004 dc.w $0002 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION TweenerDoTween ENDIF ; ; pascal ComponentResult TweenerReset(TweenerComponent tc) ; IF ¬ GENERATINGCFM THEN Macro _TweenerReset dc.w $2F3C dc.w $0000 dc.w $0003 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION TweenerReset ENDIF TCSourceRefNameType EQU 'name' tcDropFrame EQU $01 tc24HourMax EQU $02 tcNegTimesOK EQU $04 tcCounter EQU $08 TimeCodeDef RECORD 0 flags ds.l 1 ; offset: $0 (0) ; drop-frame, etc. fTimeScale ds.l 1 ; offset: $4 (4) ; time scale of frameDuration (eg. 2997) frameDuration ds.l 1 ; offset: $8 (8) ; duration of each frame (eg. 100) numFrames ds.b 1 ; offset: $C (12) ; frames/sec for timecode (eg. 30) OR frames/tick for counter mode padding ds.b 1 ; offset: $D (13) ; unused padding byte sizeof EQU * ; size: $E (14) ENDR tctNegFlag EQU $80 ; negative bit is in minutes TimeCodeTime RECORD 0 hours ds.b 1 ; offset: $0 (0) minutes ds.b 1 ; offset: $1 (1) seconds ds.b 1 ; offset: $2 (2) frames ds.b 1 ; offset: $3 (3) sizeof EQU * ; size: $4 (4) ENDR TimeCodeCounter RECORD 0 counter ds.l 1 ; offset: $0 (0) sizeof EQU * ; size: $4 (4) ENDR TimeCodeDescription RECORD 0 descSize ds.l 1 ; offset: $0 (0) ; standard sample description header dataFormat ds.l 1 ; offset: $4 (4) resvd1 ds.l 1 ; offset: $8 (8) resvd2 ds.w 1 ; offset: $C (12) dataRefIndex ds.w 1 ; offset: $E (14) flags ds.l 1 ; offset: $10 (16) ; timecode specific stuff timeCodeDef ds TimeCodeDef ; offset: $14 (20) srcRef ds.l 1 ; offset: $22 (34) <-- really an array of length one sizeof EQU * ; size: $26 (38) ENDR ; typedef struct TimeCodeDescription * TimeCodeDescriptionPtr ; typedef TimeCodeDescriptionPtr * TimeCodeDescriptionHandle tcdfShowTimeCode EQU $01 ; ; pascal HandlerError TCGetCurrentTimeCode(MediaHandler mh, long *frameNum, TimeCodeDef *tcdef, TimeCodeRecord *tcrec, UserData *srcRefH) ; IF ¬ GENERATINGCFM THEN Macro _TCGetCurrentTimeCode dc.w $2F3C dc.w $0010 dc.w $0101 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION TCGetCurrentTimeCode ENDIF ; ; pascal HandlerError TCGetTimeCodeAtTime(MediaHandler mh, TimeValue mediaTime, long *frameNum, TimeCodeDef *tcdef, TimeCodeRecord *tcdata, UserData *srcRefH) ; IF ¬ GENERATINGCFM THEN Macro _TCGetTimeCodeAtTime dc.w $2F3C dc.w $0014 dc.w $0102 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION TCGetTimeCodeAtTime ENDIF ; ; pascal HandlerError TCTimeCodeToString(MediaHandler mh, TimeCodeDef *tcdef, TimeCodeRecord *tcrec, StringPtr tcStr) ; IF ¬ GENERATINGCFM THEN Macro _TCTimeCodeToString dc.w $2F3C dc.w $000C dc.w $0103 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION TCTimeCodeToString ENDIF ; ; pascal HandlerError TCTimeCodeToFrameNumber(MediaHandler mh, TimeCodeDef *tcdef, TimeCodeRecord *tcrec, long *frameNumber) ; IF ¬ GENERATINGCFM THEN Macro _TCTimeCodeToFrameNumber dc.w $2F3C dc.w $000C dc.w $0104 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION TCTimeCodeToFrameNumber ENDIF ; ; pascal HandlerError TCFrameNumberToTimeCode(MediaHandler mh, long frameNumber, TimeCodeDef *tcdef, TimeCodeRecord *tcrec) ; IF ¬ GENERATINGCFM THEN Macro _TCFrameNumberToTimeCode dc.w $2F3C dc.w $000C dc.w $0105 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION TCFrameNumberToTimeCode ENDIF ; ; pascal HandlerError TCGetSourceRef(MediaHandler mh, TimeCodeDescriptionHandle tcdH, UserData *srefH) ; IF ¬ GENERATINGCFM THEN Macro _TCGetSourceRef dc.w $2F3C dc.w $0008 dc.w $0106 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION TCGetSourceRef ENDIF ; ; pascal HandlerError TCSetSourceRef(MediaHandler mh, TimeCodeDescriptionHandle tcdH, UserData srefH) ; IF ¬ GENERATINGCFM THEN Macro _TCSetSourceRef dc.w $2F3C dc.w $0008 dc.w $0107 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION TCSetSourceRef ENDIF ; ; pascal HandlerError TCSetTimeCodeFlags(MediaHandler mh, long flags, long flagsMask) ; IF ¬ GENERATINGCFM THEN Macro _TCSetTimeCodeFlags dc.w $2F3C dc.w $0008 dc.w $0108 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION TCSetTimeCodeFlags ENDIF ; ; pascal HandlerError TCGetTimeCodeFlags(MediaHandler mh, long *flags) ; IF ¬ GENERATINGCFM THEN Macro _TCGetTimeCodeFlags dc.w $2F3C dc.w $0004 dc.w $0109 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION TCGetTimeCodeFlags ENDIF ; ; pascal HandlerError TCSetDisplayOptions(MediaHandler mh, TCTextOptionsPtr textOptions) ; IF ¬ GENERATINGCFM THEN Macro _TCSetDisplayOptions dc.w $2F3C dc.w $0004 dc.w $010A moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION TCSetDisplayOptions ENDIF ; ; pascal HandlerError TCGetDisplayOptions(MediaHandler mh, TCTextOptionsPtr textOptions) ; IF ¬ GENERATINGCFM THEN Macro _TCGetDisplayOptions dc.w $2F3C dc.w $0004 dc.w $010B moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION TCGetDisplayOptions ENDIF ; typedef ComponentInstance MovieImportComponent ; typedef ComponentInstance MovieExportComponent MovieImportType EQU 'eat ' MovieExportType EQU 'spit' canMovieImportHandles EQU $01 canMovieImportFiles EQU $02 hasMovieImportUserInterface EQU $04 canMovieExportHandles EQU $08 canMovieExportFiles EQU $10 hasMovieExportUserInterface EQU $20 dontAutoFileMovieImport EQU $40 canMovieExportAuxDataHandle EQU $80 canMovieImportValidateHandles EQU $0100 canMovieImportValidateFile EQU $0200 dontRegisterWithEasyOpen EQU $0400 canMovieImportInPlace EQU $0800 movieImportSubTypeIsFileExtension EQU $1000 movieImportCreateTrack EQU 1 movieImportInParallel EQU 2 movieImportMustUseTrack EQU 4 movieImportResultUsedMultipleTracks EQU 8 kMovieExportTextOnly EQU 0 kMovieExportAbsoluteTime EQU 1 kMovieExportRelativeTime EQU 2 kMIDIImportSilenceBefore EQU $01 kMIDIImportSilenceAfter EQU $02 kMIDIImport20Playable EQU $04 kMIDIImportWantLyrics EQU $08 ; ; pascal ComponentResult MovieImportHandle(MovieImportComponent ci, Handle dataH, Movie theMovie, Track targetTrack, Track *usedTrack, TimeValue atTime, TimeValue *addedDuration, long inFlags, long *outFlags) ; IF ¬ GENERATINGCFM THEN Macro _MovieImportHandle dc.w $2F3C dc.w $0020 dc.w $0001 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION MovieImportHandle ENDIF ; ; pascal ComponentResult MovieImportFile(MovieImportComponent ci, const FSSpec *theFile, Movie theMovie, Track targetTrack, Track *usedTrack, TimeValue atTime, TimeValue *addedDuration, long inFlags, long *outFlags) ; IF ¬ GENERATINGCFM THEN Macro _MovieImportFile dc.w $2F3C dc.w $0020 dc.w $0002 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION MovieImportFile ENDIF ; ; pascal ComponentResult MovieImportSetSampleDuration(MovieImportComponent ci, TimeValue duration, TimeScale scale) ; IF ¬ GENERATINGCFM THEN Macro _MovieImportSetSampleDuration dc.w $2F3C dc.w $0008 dc.w $0003 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION MovieImportSetSampleDuration ENDIF ; ; pascal ComponentResult MovieImportSetSampleDescription(MovieImportComponent ci, SampleDescriptionHandle desc, OSType mediaType) ; IF ¬ GENERATINGCFM THEN Macro _MovieImportSetSampleDescription dc.w $2F3C dc.w $0008 dc.w $0004 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION MovieImportSetSampleDescription ENDIF ; ; pascal ComponentResult MovieImportSetMediaFile(MovieImportComponent ci, AliasHandle alias) ; IF ¬ GENERATINGCFM THEN Macro _MovieImportSetMediaFile dc.w $2F3C dc.w $0004 dc.w $0005 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION MovieImportSetMediaFile ENDIF ; ; pascal ComponentResult MovieImportSetDimensions(MovieImportComponent ci, Fixed width, Fixed height) ; IF ¬ GENERATINGCFM THEN Macro _MovieImportSetDimensions dc.w $2F3C dc.w $0008 dc.w $0006 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION MovieImportSetDimensions ENDIF ; ; pascal ComponentResult MovieImportSetChunkSize(MovieImportComponent ci, long chunkSize) ; IF ¬ GENERATINGCFM THEN Macro _MovieImportSetChunkSize dc.w $2F3C dc.w $0004 dc.w $0007 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION MovieImportSetChunkSize ENDIF ; ; pascal ComponentResult MovieImportSetProgressProc(MovieImportComponent ci, MovieProgressUPP proc, long refcon) ; IF ¬ GENERATINGCFM THEN Macro _MovieImportSetProgressProc dc.w $2F3C dc.w $0008 dc.w $0008 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION MovieImportSetProgressProc ENDIF ; ; pascal ComponentResult MovieImportSetAuxiliaryData(MovieImportComponent ci, Handle data, OSType handleType) ; IF ¬ GENERATINGCFM THEN Macro _MovieImportSetAuxiliaryData dc.w $2F3C dc.w $0008 dc.w $0009 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION MovieImportSetAuxiliaryData ENDIF ; ; pascal ComponentResult MovieImportSetFromScrap(MovieImportComponent ci, Boolean fromScrap) ; IF ¬ GENERATINGCFM THEN Macro _MovieImportSetFromScrap dc.w $2F3C dc.w $0002 dc.w $000A moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION MovieImportSetFromScrap ENDIF ; ; pascal ComponentResult MovieImportDoUserDialog(MovieImportComponent ci, const FSSpec *theFile, Handle theData, Boolean *canceled) ; IF ¬ GENERATINGCFM THEN Macro _MovieImportDoUserDialog dc.w $2F3C dc.w $000C dc.w $000B moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION MovieImportDoUserDialog ENDIF ; ; pascal ComponentResult MovieImportSetDuration(MovieImportComponent ci, TimeValue duration) ; IF ¬ GENERATINGCFM THEN Macro _MovieImportSetDuration dc.w $2F3C dc.w $0004 dc.w $000C moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION MovieImportSetDuration ENDIF ; ; pascal ComponentResult MovieImportGetAuxiliaryDataType(MovieImportComponent ci, OSType *auxType) ; IF ¬ GENERATINGCFM THEN Macro _MovieImportGetAuxiliaryDataType dc.w $2F3C dc.w $0004 dc.w $000D moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION MovieImportGetAuxiliaryDataType ENDIF ; ; pascal ComponentResult MovieImportValidate(MovieImportComponent ci, const FSSpec *theFile, Handle theData, Boolean *valid) ; IF ¬ GENERATINGCFM THEN Macro _MovieImportValidate dc.w $2F3C dc.w $000C dc.w $000E moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION MovieImportValidate ENDIF ; ; pascal ComponentResult MovieImportGetFileType(MovieImportComponent ci, OSType *fileType) ; IF ¬ GENERATINGCFM THEN Macro _MovieImportGetFileType dc.w $2F3C dc.w $0004 dc.w $000F moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION MovieImportGetFileType ENDIF ; ; pascal ComponentResult MovieImportDataRef(MovieImportComponent ci, Handle dataRef, OSType dataRefType, Movie theMovie, Track targetTrack, Track *usedTrack, TimeValue atTime, TimeValue *addedDuration, long inFlags, long *outFlags) ; IF ¬ GENERATINGCFM THEN Macro _MovieImportDataRef dc.w $2F3C dc.w $0024 dc.w $0010 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION MovieImportDataRef ENDIF ; ; pascal ComponentResult MovieImportGetSampleDescription(MovieImportComponent ci, SampleDescriptionHandle *desc, OSType *mediaType) ; IF ¬ GENERATINGCFM THEN Macro _MovieImportGetSampleDescription dc.w $2F3C dc.w $0008 dc.w $0011 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION MovieImportGetSampleDescription ENDIF ; ; pascal ComponentResult MovieExportToHandle(MovieExportComponent ci, Handle dataH, Movie theMovie, Track onlyThisTrack, TimeValue startTime, TimeValue duration) ; IF ¬ GENERATINGCFM THEN Macro _MovieExportToHandle dc.w $2F3C dc.w $0014 dc.w $0080 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION MovieExportToHandle ENDIF ; ; pascal ComponentResult MovieExportToFile(MovieExportComponent ci, const FSSpec *theFile, Movie theMovie, Track onlyThisTrack, TimeValue startTime, TimeValue duration) ; IF ¬ GENERATINGCFM THEN Macro _MovieExportToFile dc.w $2F3C dc.w $0014 dc.w $0081 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION MovieExportToFile ENDIF ; ; pascal ComponentResult MovieExportGetAuxiliaryData(MovieExportComponent ci, Handle dataH, OSType *handleType) ; IF ¬ GENERATINGCFM THEN Macro _MovieExportGetAuxiliaryData dc.w $2F3C dc.w $0008 dc.w $0083 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION MovieExportGetAuxiliaryData ENDIF ; ; pascal ComponentResult MovieExportSetProgressProc(MovieExportComponent ci, MovieProgressUPP proc, long refcon) ; IF ¬ GENERATINGCFM THEN Macro _MovieExportSetProgressProc dc.w $2F3C dc.w $0008 dc.w $0084 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION MovieExportSetProgressProc ENDIF ; ; pascal ComponentResult MovieExportSetSampleDescription(MovieExportComponent ci, SampleDescriptionHandle desc, OSType mediaType) ; IF ¬ GENERATINGCFM THEN Macro _MovieExportSetSampleDescription dc.w $2F3C dc.w $0008 dc.w $0085 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION MovieExportSetSampleDescription ENDIF ; ; pascal ComponentResult MovieExportDoUserDialog(MovieExportComponent ci, Movie theMovie, Track onlyThisTrack, TimeValue startTime, TimeValue duration, Boolean *canceled) ; IF ¬ GENERATINGCFM THEN Macro _MovieExportDoUserDialog dc.w $2F3C dc.w $0014 dc.w $0086 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION MovieExportDoUserDialog ENDIF ; ; pascal ComponentResult MovieExportGetCreatorType(MovieExportComponent ci, OSType *creator) ; IF ¬ GENERATINGCFM THEN Macro _MovieExportGetCreatorType dc.w $2F3C dc.w $0004 dc.w $0087 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION MovieExportGetCreatorType ENDIF IF ¬ GENERATINGPOWERPC THEN ; Text Export Display Info data structure TextDisplayData RECORD 0 displayFlags ds.l 1 ; offset: $0 (0) textJustification ds.l 1 ; offset: $4 (4) bgColor ds RGBColor ; offset: $8 (8) textBox ds Rect ; offset: $E (14) beginHilite ds.w 1 ; offset: $16 (22) endHilite ds.w 1 ; offset: $18 (24) hiliteColor ds RGBColor ; offset: $1A (26) doHiliteColor ds.b 1 ; offset: $20 (32) filler ds.b 1 ; offset: $21 (33) scrollDelayDur ds.l 1 ; offset: $22 (34) dropShadowOffset ds Point ; offset: $26 (38) dropShadowTransparency ds.w 1 ; offset: $2A (42) sizeof EQU * ; size: $2C (44) ENDR ENDIF ; typedef ComponentInstance TextExportComponent ; ; pascal ComponentResult TextExportGetDisplayData(TextExportComponent ci, TextDisplayData *textDisplay) ; IF ¬ GENERATINGCFM THEN Macro _TextExportGetDisplayData dc.w $2F3C dc.w $0004 dc.w $0100 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION TextExportGetDisplayData ENDIF ; ; pascal ComponentResult TextExportGetTimeFraction(TextExportComponent ci, long *movieTimeFraction) ; IF ¬ GENERATINGCFM THEN Macro _TextExportGetTimeFraction dc.w $2F3C dc.w $0004 dc.w $0101 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION TextExportGetTimeFraction ENDIF ; ; pascal ComponentResult TextExportSetTimeFraction(TextExportComponent ci, long movieTimeFraction) ; IF ¬ GENERATINGCFM THEN Macro _TextExportSetTimeFraction dc.w $2F3C dc.w $0004 dc.w $0102 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION TextExportSetTimeFraction ENDIF ; ; pascal ComponentResult TextExportGetSettings(TextExportComponent ci, long *setting) ; IF ¬ GENERATINGCFM THEN Macro _TextExportGetSettings dc.w $2F3C dc.w $0004 dc.w $0103 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION TextExportGetSettings ENDIF ; ; pascal ComponentResult TextExportSetSettings(TextExportComponent ci, long setting) ; IF ¬ GENERATINGCFM THEN Macro _TextExportSetSettings dc.w $2F3C dc.w $0004 dc.w $0104 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION TextExportSetSettings ENDIF ; ; pascal ComponentResult MIDIImportGetSettings(TextExportComponent ci, long *setting) ; IF ¬ GENERATINGCFM THEN Macro _MIDIImportGetSettings dc.w $2F3C dc.w $0004 dc.w $0100 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION MIDIImportGetSettings ENDIF ; ; pascal ComponentResult MIDIImportSetSettings(TextExportComponent ci, long setting) ; IF ¬ GENERATINGCFM THEN Macro _MIDIImportSetSettings dc.w $2F3C dc.w $0004 dc.w $0101 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION MIDIImportSetSettings ENDIF ; ;************** ; ; File Preview Components ; ;************** ; ; typedef ComponentInstance pnotComponent pnotComponentWantsEvents EQU 1 pnotComponentNeedsNoCache EQU 2 ShowFilePreviewComponentType EQU 'pnot' CreateFilePreviewComponentType EQU 'pmak' ; ; pascal ComponentResult PreviewShowData(pnotComponent p, OSType dataType, Handle data, const Rect *inHere) ; IF ¬ GENERATINGCFM THEN Macro _PreviewShowData dc.w $2F3C dc.w $000C dc.w $0001 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION PreviewShowData ENDIF ; ; pascal ComponentResult PreviewMakePreview(pnotComponent p, OSType *previewType, Handle *previewResult, const FSSpec *sourceFile, ICMProgressProcRecordPtr progress) ; IF ¬ GENERATINGCFM THEN Macro _PreviewMakePreview dc.w $2F3C dc.w $0010 dc.w $0002 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION PreviewMakePreview ENDIF ; ; pascal ComponentResult PreviewMakePreviewReference(pnotComponent p, OSType *previewType, short *resID, const FSSpec *sourceFile) ; IF ¬ GENERATINGCFM THEN Macro _PreviewMakePreviewReference dc.w $2F3C dc.w $000C dc.w $0003 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION PreviewMakePreviewReference ENDIF ; ; pascal ComponentResult PreviewEvent(pnotComponent p, EventRecord *e, Boolean *handledEvent) ; IF ¬ GENERATINGCFM THEN Macro _PreviewEvent dc.w $2F3C dc.w $0008 dc.w $0004 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION PreviewEvent ENDIF kDataHCanRead EQU $00000001 kDataHSpecialRead EQU $00000002 kDataHSpecialReadFile EQU $00000004 kDataHCanWrite EQU $00000008 kDataHSpecialWrite EQU $10 kDataHSpecialWriteFile EQU $20 kDataHCanStreamingWrite EQU $40 kDataHMustCheckDataRef EQU $80 DataHVolumeListRecord RECORD 0 vRefNum ds.w 1 ; offset: $0 (0) flags ds.l 1 ; offset: $2 (2) sizeof EQU * ; size: $6 (6) ENDR ; typedef struct DataHVolumeListRecord * DataHVolumeListPtr ; typedef DataHVolumeListPtr * DataHVolumeList kDataHExtendedSchedule EQU 'xtnd' DataHScheduleRecord RECORD 0 timeNeededBy ds TimeRecord ; offset: $0 (0) extendedID ds.l 1 ; offset: $10 (16) ; always is kDataHExtendedSchedule extendedVers ds.l 1 ; offset: $14 (20) ; always set to 0 priority ds.l 1 ; offset: $18 (24) ; 100.0 or more means must have. lower numbers… sizeof EQU * ; size: $1C (28) ENDR ; typedef struct DataHScheduleRecord * DataHSchedulePtr ; ; pascal ComponentResult DataHGetData(DataHandler dh, Handle h, long hOffset, long offset, long size) ; IF ¬ GENERATINGCFM THEN Macro _DataHGetData dc.w $2F3C dc.w $0010 dc.w $0002 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHGetData ENDIF ; ; pascal ComponentResult DataHPutData(DataHandler dh, Handle h, long hOffset, long *offset, long size) ; IF ¬ GENERATINGCFM THEN Macro _DataHPutData dc.w $2F3C dc.w $0010 dc.w $0003 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHPutData ENDIF ; ; pascal ComponentResult DataHFlushData(DataHandler dh) ; IF ¬ GENERATINGCFM THEN Macro _DataHFlushData dc.w $2F3C dc.w $0000 dc.w $0004 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHFlushData ENDIF ; ; pascal ComponentResult DataHOpenForWrite(DataHandler dh) ; IF ¬ GENERATINGCFM THEN Macro _DataHOpenForWrite dc.w $2F3C dc.w $0000 dc.w $0005 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHOpenForWrite ENDIF ; ; pascal ComponentResult DataHCloseForWrite(DataHandler dh) ; IF ¬ GENERATINGCFM THEN Macro _DataHCloseForWrite dc.w $2F3C dc.w $0000 dc.w $0006 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHCloseForWrite ENDIF ; ; pascal ComponentResult DataHOpenForRead(DataHandler dh) ; IF ¬ GENERATINGCFM THEN Macro _DataHOpenForRead dc.w $2F3C dc.w $0000 dc.w $0008 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHOpenForRead ENDIF ; ; pascal ComponentResult DataHCloseForRead(DataHandler dh) ; IF ¬ GENERATINGCFM THEN Macro _DataHCloseForRead dc.w $2F3C dc.w $0000 dc.w $0009 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHCloseForRead ENDIF ; ; pascal ComponentResult DataHSetDataRef(DataHandler dh, Handle dataRef) ; IF ¬ GENERATINGCFM THEN Macro _DataHSetDataRef dc.w $2F3C dc.w $0004 dc.w $000A moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHSetDataRef ENDIF ; ; pascal ComponentResult DataHGetDataRef(DataHandler dh, Handle *dataRef) ; IF ¬ GENERATINGCFM THEN Macro _DataHGetDataRef dc.w $2F3C dc.w $0004 dc.w $000B moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHGetDataRef ENDIF ; ; pascal ComponentResult DataHCompareDataRef(DataHandler dh, Handle dataRef, Boolean *equal) ; IF ¬ GENERATINGCFM THEN Macro _DataHCompareDataRef dc.w $2F3C dc.w $0008 dc.w $000C moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHCompareDataRef ENDIF ; ; pascal ComponentResult DataHTask(DataHandler dh) ; IF ¬ GENERATINGCFM THEN Macro _DataHTask dc.w $2F3C dc.w $0000 dc.w $000D moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHTask ENDIF ; ; pascal ComponentResult DataHScheduleData(DataHandler dh, Ptr PlaceToPutDataPtr, long FileOffset, long DataSize, long RefCon, DataHSchedulePtr scheduleRec, DataHCompletionUPP CompletionRtn) ; IF ¬ GENERATINGCFM THEN Macro _DataHScheduleData dc.w $2F3C dc.w $0018 dc.w $000E moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHScheduleData ENDIF ; ; pascal ComponentResult DataHFinishData(DataHandler dh, Ptr PlaceToPutDataPtr, Boolean Cancel) ; IF ¬ GENERATINGCFM THEN Macro _DataHFinishData dc.w $2F3C dc.w $0006 dc.w $000F moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHFinishData ENDIF ; ; pascal ComponentResult DataHFlushCache(DataHandler dh) ; IF ¬ GENERATINGCFM THEN Macro _DataHFlushCache dc.w $2F3C dc.w $0000 dc.w $0010 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHFlushCache ENDIF ; ; pascal ComponentResult DataHResolveDataRef(DataHandler dh, Handle theDataRef, Boolean *wasChanged, Boolean userInterfaceAllowed) ; IF ¬ GENERATINGCFM THEN Macro _DataHResolveDataRef dc.w $2F3C dc.w $000A dc.w $0011 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHResolveDataRef ENDIF ; ; pascal ComponentResult DataHGetFileSize(DataHandler dh, long *fileSize) ; IF ¬ GENERATINGCFM THEN Macro _DataHGetFileSize dc.w $2F3C dc.w $0004 dc.w $0012 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHGetFileSize ENDIF ; ; pascal ComponentResult DataHCanUseDataRef(DataHandler dh, Handle dataRef, long *useFlags) ; IF ¬ GENERATINGCFM THEN Macro _DataHCanUseDataRef dc.w $2F3C dc.w $0008 dc.w $0013 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHCanUseDataRef ENDIF ; ; pascal ComponentResult DataHGetVolumeList(DataHandler dh, DataHVolumeList *volumeList) ; IF ¬ GENERATINGCFM THEN Macro _DataHGetVolumeList dc.w $2F3C dc.w $0004 dc.w $0014 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHGetVolumeList ENDIF ; ; pascal ComponentResult DataHWrite(DataHandler dh, Ptr data, long offset, long size, DataHCompletionUPP completion, long refCon) ; IF ¬ GENERATINGCFM THEN Macro _DataHWrite dc.w $2F3C dc.w $0014 dc.w $0015 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHWrite ENDIF ; ; pascal ComponentResult DataHPreextend(DataHandler dh, long maxToAdd, long *spaceAdded) ; IF ¬ GENERATINGCFM THEN Macro _DataHPreextend dc.w $2F3C dc.w $0008 dc.w $0016 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHPreextend ENDIF ; ; pascal ComponentResult DataHSetFileSize(DataHandler dh, long fileSize) ; IF ¬ GENERATINGCFM THEN Macro _DataHSetFileSize dc.w $2F3C dc.w $0004 dc.w $0017 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHSetFileSize ENDIF ; ; pascal ComponentResult DataHGetFreeSpace(DataHandler dh, unsigned long *freeSize) ; IF ¬ GENERATINGCFM THEN Macro _DataHGetFreeSpace dc.w $2F3C dc.w $0004 dc.w $0018 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHGetFreeSpace ENDIF ; ; pascal ComponentResult DataHCreateFile(DataHandler dh, OSType creator, Boolean deleteExisting) ; IF ¬ GENERATINGCFM THEN Macro _DataHCreateFile dc.w $2F3C dc.w $0006 dc.w $0019 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHCreateFile ENDIF ; ; pascal ComponentResult DataHGetPreferredBlockSize(DataHandler dh, long *blockSize) ; IF ¬ GENERATINGCFM THEN Macro _DataHGetPreferredBlockSize dc.w $2F3C dc.w $0004 dc.w $001A moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHGetPreferredBlockSize ENDIF ; ; pascal ComponentResult DataHGetDeviceIndex(DataHandler dh, long *deviceIndex) ; IF ¬ GENERATINGCFM THEN Macro _DataHGetDeviceIndex dc.w $2F3C dc.w $0004 dc.w $001B moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHGetDeviceIndex ENDIF ; ; pascal ComponentResult DataHIsStreamingDataHandler(DataHandler dh, Boolean *yes) ; IF ¬ GENERATINGCFM THEN Macro _DataHIsStreamingDataHandler dc.w $2F3C dc.w $0004 dc.w $001C moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHIsStreamingDataHandler ENDIF ; ; pascal ComponentResult DataHGetDataInBuffer(DataHandler dh, long startOffset, long *size) ; IF ¬ GENERATINGCFM THEN Macro _DataHGetDataInBuffer dc.w $2F3C dc.w $0008 dc.w $001D moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHGetDataInBuffer ENDIF ; ; pascal ComponentResult DataHGetScheduleAheadTime(DataHandler dh, long *millisecs) ; IF ¬ GENERATINGCFM THEN Macro _DataHGetScheduleAheadTime dc.w $2F3C dc.w $0004 dc.w $001E moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHGetScheduleAheadTime ENDIF ; ; pascal ComponentResult DataHSetCacheSizeLimit(DataHandler dh, Size cacheSizeLimit) ; IF ¬ GENERATINGCFM THEN Macro _DataHSetCacheSizeLimit dc.w $2F3C dc.w $0004 dc.w $001F moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHSetCacheSizeLimit ENDIF ; ; pascal ComponentResult DataHGetCacheSizeLimit(DataHandler dh, Size *cacheSizeLimit) ; IF ¬ GENERATINGCFM THEN Macro _DataHGetCacheSizeLimit dc.w $2F3C dc.w $0004 dc.w $0020 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHGetCacheSizeLimit ENDIF ; ; pascal ComponentResult DataHGetMovie(DataHandler dh, Movie *theMovie, short *id) ; IF ¬ GENERATINGCFM THEN Macro _DataHGetMovie dc.w $2F3C dc.w $0008 dc.w $0021 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHGetMovie ENDIF ; ; pascal ComponentResult DataHAddMovie(DataHandler dh, Movie theMovie, short *id) ; IF ¬ GENERATINGCFM THEN Macro _DataHAddMovie dc.w $2F3C dc.w $0008 dc.w $0022 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHAddMovie ENDIF ; ; pascal ComponentResult DataHUpdateMovie(DataHandler dh, Movie theMovie, short id) ; IF ¬ GENERATINGCFM THEN Macro _DataHUpdateMovie dc.w $2F3C dc.w $0006 dc.w $0023 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHUpdateMovie ENDIF ; ; pascal ComponentResult DataHDoesBuffer(DataHandler dh, Boolean *buffersReads, Boolean *buffersWrites) ; IF ¬ GENERATINGCFM THEN Macro _DataHDoesBuffer dc.w $2F3C dc.w $0008 dc.w $0024 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHDoesBuffer ENDIF ; ; pascal ComponentResult DataHGetFileName(DataHandler dh, Str255 str) ; IF ¬ GENERATINGCFM THEN Macro _DataHGetFileName dc.w $2F3C dc.w $0004 dc.w $0025 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHGetFileName ENDIF ; ; pascal ComponentResult DataHPlaybackHints(DataHandler dh, long flags, unsigned long minFileOffset, unsigned long maxFileOffset, long bytesPerSecond) ; IF ¬ GENERATINGCFM THEN Macro _DataHPlaybackHints dc.w $2F3C dc.w $0010 dc.w $0103 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION DataHPlaybackHints ENDIF ; Standard type for video digitizers videoDigitizerComponentType EQU 'vdig' vdigInterfaceRev EQU 2 ; Input Format Standards ntscIn EQU 0 ; current input format currentIn EQU 0 ; ntsc input format palIn EQU 1 ; pal input format secamIn EQU 2 ; secam input format ntscReallyIn EQU 3 ; ntsc input format ; Input Formats compositeIn EQU 0 ; input is composite format sVideoIn EQU 1 ; input is sVideo format rgbComponentIn EQU 2 ; input is rgb component format rgbComponentSyncIn EQU 3 ; input is rgb component format (sync on green?) yuvComponentIn EQU 4 ; input is yuv component format yuvComponentSyncIn EQU 5 ; input is yuv component format (sync on green?) tvTunerIn EQU 6 ; Video Digitizer PlayThru States vdPlayThruOff EQU 0 vdPlayThruOn EQU 1 ; Input Color Space Modes vdDigitizerBW EQU 0 ; black and white vdDigitizerRGB EQU 1 ; rgb color ; Phase Lock Loop Modes vdBroadcastMode EQU 0 ; Broadcast / Laser Disk video mode vdVTRMode EQU 1 ; VCR / Magnetic media mode ; Field Select Options vdUseAnyField EQU 0 ; Digitizers choice on field use vdUseOddField EQU 1 ; Use odd field for half size vert and smaller vdUseEvenField EQU 2 ; Use even field for half size vert and smaller ; vdig types vdTypeBasic EQU 0 ; basic, no clipping vdTypeAlpha EQU 1 ; supports clipping with alpha channel vdTypeMask EQU 2 ; supports clipping with mask plane vdTypeKey EQU 3 ; supports clipping with key color(s) ; Digitizer Input Capability/Current Flags digiInDoesNTSC EQU $00000001 ; digitizer supports NTSC input format digiInDoesPAL EQU $00000002 ; digitizer supports PAL input format digiInDoesSECAM EQU $00000004 ; digitizer supports SECAM input format digiInDoesGenLock EQU $00000080 ; digitizer does genlock digiInDoesComposite EQU $00000100 ; digitizer supports composite input type digiInDoesSVideo EQU $00000200 ; digitizer supports S-Video input type digiInDoesComponent EQU $00000400 ; digitizer supports component = rgb, input type digiInVTR_Broadcast EQU $00000800 ; digitizer can differentiate between the two digiInDoesColor EQU $00001000 ; digitizer supports color digiInDoesBW EQU $00002000 ; digitizer supports black & white ; Digitizer Input Current Flags = these are valid only during active operating conditions, digiInSignalLock EQU $80000000 ; digitizer detects input signal is locked, this bit = horiz lock || vertical lock ; Digitizer Output Capability/Current Flags digiOutDoes1 EQU $00000001 ; digitizer supports 1 bit pixels digiOutDoes2 EQU $00000002 ; digitizer supports 2 bit pixels digiOutDoes4 EQU $00000004 ; digitizer supports 4 bit pixels digiOutDoes8 EQU $00000008 ; digitizer supports 8 bit pixels digiOutDoes16 EQU $00000010 ; digitizer supports 16 bit pixels digiOutDoes32 EQU $00000020 ; digitizer supports 32 bit pixels digiOutDoesDither EQU $00000040 ; digitizer dithers in indexed modes digiOutDoesStretch EQU $00000080 ; digitizer can arbitrarily stretch digiOutDoesShrink EQU $00000100 ; digitizer can arbitrarily shrink digiOutDoesMask EQU $00000200 ; digitizer can mask to clipping regions digiOutDoesDouble EQU $00000800 ; digitizer can stretch to exactly double size digiOutDoesQuad EQU $00001000 ; digitizer can stretch exactly quadruple size digiOutDoesQuarter EQU $00002000 ; digitizer can shrink to exactly quarter size digiOutDoesSixteenth EQU $00004000 ; digitizer can shrink to exactly sixteenth size digiOutDoesRotate EQU $00008000 ; digitizer supports rotate transformations digiOutDoesHorizFlip EQU $00010000 ; digitizer supports horizontal flips Sx < 0 digiOutDoesVertFlip EQU $00020000 ; digitizer supports vertical flips Sy < 0 digiOutDoesSkew EQU $00040000 ; digitizer supports skew = shear,twist, digiOutDoesBlend EQU $00080000 digiOutDoesWarp EQU $00100000 digiOutDoesHW_DMA EQU $00200000 ; digitizer not constrained to local device digiOutDoesHWPlayThru EQU $00400000 ; digitizer doesn't need time to play thru digiOutDoesILUT EQU $00800000 ; digitizer does inverse LUT for index modes digiOutDoesKeyColor EQU $01000000 ; digitizer does key color functions too digiOutDoesAsyncGrabs EQU $02000000 ; digitizer supports async grabs digiOutDoesUnreadableScreenBits EQU $04000000 ; playthru doesn't generate readable bits on screen digiOutDoesCompress EQU $08000000 ; supports alternate output data types digiOutDoesCompressOnly EQU $10000000 ; can't provide raw frames anywhere digiOutDoesPlayThruDuringCompress EQU $20000000 ; digi can do playthru while providing compressed data digiOutDoesCompressPartiallyVisible EQU $40000000 ; digi doesn't need all bits visible on screen to do hardware compress ; Types ; typedef ComponentInstance VideoDigitizerComponent ; typedef ComponentResult VideoDigitizerError DigitizerInfo RECORD 0 vdigType ds.w 1 ; offset: $0 (0) inputCapabilityFlags ds.l 1 ; offset: $2 (2) outputCapabilityFlags ds.l 1 ; offset: $6 (6) inputCurrentFlags ds.l 1 ; offset: $A (10) outputCurrentFlags ds.l 1 ; offset: $E (14) slot ds.w 1 ; offset: $12 (18) ; temporary for connection purposes gdh ds.l 1 ; offset: $14 (20) ; temporary for digitizers that have preferred screen maskgdh ds.l 1 ; offset: $18 (24) ; temporary for digitizers that have mask planes minDestHeight ds.w 1 ; offset: $1C (28) ; Smallest resizable height minDestWidth ds.w 1 ; offset: $1E (30) ; Smallest resizable width maxDestHeight ds.w 1 ; offset: $20 (32) ; Largest resizable height maxDestWidth ds.w 1 ; offset: $22 (34) ; Largest resizable height blendLevels ds.w 1 ; offset: $24 (36) ; Number of blend levels supported (2 if 1 bit mask) reserved ds.l 1 ; offset: $26 (38) ; reserved sizeof EQU * ; size: $2A (42) ENDR VdigType RECORD 0 digType ds.l 1 ; offset: $0 (0) reserved ds.l 1 ; offset: $4 (4) sizeof EQU * ; size: $8 (8) ENDR VdigTypeList RECORD 0 count ds.w 1 ; offset: $0 (0) list ds VdigType ; offset: $2 (2) <-- really an array of length one sizeof EQU * ; size: $A (10) ENDR VdigBufferRec RECORD 0 dest ds.l 1 ; offset: $0 (0) location ds Point ; offset: $4 (4) reserved ds.l 1 ; offset: $8 (8) sizeof EQU * ; size: $C (12) ENDR VdigBufferRecList RECORD 0 count ds.w 1 ; offset: $0 (0) matrix ds.l 1 ; offset: $2 (2) mask ds.l 1 ; offset: $6 (6) list ds VdigBufferRec ; offset: $A (10) <-- really an array of length one sizeof EQU * ; size: $16 (22) ENDR ; typedef struct VdigBufferRecList * VdigBufferRecListPtr ; typedef VdigBufferRecListPtr * VdigBufferRecListHandle VDCompressionList RECORD 0 codec ds.l 1 ; offset: $0 (0) cType ds.l 1 ; offset: $4 (4) typeName ds Str63 ; offset: $8 (8) name ds Str63 ; offset: $48 (72) formatFlags ds.l 1 ; offset: $88 (136) compressFlags ds.l 1 ; offset: $8C (140) reserved ds.l 1 ; offset: $90 (144) sizeof EQU * ; size: $94 (148) ENDR ; typedef struct VDCompressionList * VDCompressionListPtr ; typedef VDCompressionListPtr * VDCompressionListHandle dmaDepth1 EQU 1 dmaDepth2 EQU 2 dmaDepth4 EQU 4 dmaDepth8 EQU 8 dmaDepth16 EQU 16 dmaDepth32 EQU 32 dmaDepth2Gray EQU 64 dmaDepth4Gray EQU 128 dmaDepth8Gray EQU 256 kVDIGControlledFrameRate EQU -1 ; ; pascal VideoDigitizerError VDGetMaxSrcRect(VideoDigitizerComponent ci, short inputStd, Rect *maxSrcRect) ; IF ¬ GENERATINGCFM THEN Macro _VDGetMaxSrcRect dc.w $2F3C dc.w $0006 dc.w $0001 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetMaxSrcRect ENDIF ; ; pascal VideoDigitizerError VDGetActiveSrcRect(VideoDigitizerComponent ci, short inputStd, Rect *activeSrcRect) ; IF ¬ GENERATINGCFM THEN Macro _VDGetActiveSrcRect dc.w $2F3C dc.w $0006 dc.w $0002 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetActiveSrcRect ENDIF ; ; pascal VideoDigitizerError VDSetDigitizerRect(VideoDigitizerComponent ci, Rect *digitizerRect) ; IF ¬ GENERATINGCFM THEN Macro _VDSetDigitizerRect dc.w $2F3C dc.w $0004 dc.w $0003 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDSetDigitizerRect ENDIF ; ; pascal VideoDigitizerError VDGetDigitizerRect(VideoDigitizerComponent ci, Rect *digitizerRect) ; IF ¬ GENERATINGCFM THEN Macro _VDGetDigitizerRect dc.w $2F3C dc.w $0004 dc.w $0004 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetDigitizerRect ENDIF ; ; pascal VideoDigitizerError VDGetVBlankRect(VideoDigitizerComponent ci, short inputStd, Rect *vBlankRect) ; IF ¬ GENERATINGCFM THEN Macro _VDGetVBlankRect dc.w $2F3C dc.w $0006 dc.w $0005 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetVBlankRect ENDIF ; ; pascal VideoDigitizerError VDGetMaskPixMap(VideoDigitizerComponent ci, PixMapHandle maskPixMap) ; IF ¬ GENERATINGCFM THEN Macro _VDGetMaskPixMap dc.w $2F3C dc.w $0004 dc.w $0006 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetMaskPixMap ENDIF ; ; pascal VideoDigitizerError VDGetPlayThruDestination(VideoDigitizerComponent ci, PixMapHandle *dest, Rect *destRect, MatrixRecord *m, RgnHandle *mask) ; IF ¬ GENERATINGCFM THEN Macro _VDGetPlayThruDestination dc.w $2F3C dc.w $0010 dc.w $0008 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetPlayThruDestination ENDIF ; ; pascal VideoDigitizerError VDUseThisCLUT(VideoDigitizerComponent ci, CTabHandle colorTableHandle) ; IF ¬ GENERATINGCFM THEN Macro _VDUseThisCLUT dc.w $2F3C dc.w $0004 dc.w $0009 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDUseThisCLUT ENDIF ; ; pascal VideoDigitizerError VDSetInputGammaValue(VideoDigitizerComponent ci, Fixed channel1, Fixed channel2, Fixed channel3) ; IF ¬ GENERATINGCFM THEN Macro _VDSetInputGammaValue dc.w $2F3C dc.w $000C dc.w $000A moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDSetInputGammaValue ENDIF ; ; pascal VideoDigitizerError VDGetInputGammaValue(VideoDigitizerComponent ci, Fixed *channel1, Fixed *channel2, Fixed *channel3) ; IF ¬ GENERATINGCFM THEN Macro _VDGetInputGammaValue dc.w $2F3C dc.w $000C dc.w $000B moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetInputGammaValue ENDIF ; ; pascal VideoDigitizerError VDSetBrightness(VideoDigitizerComponent ci, unsigned short *brightness) ; IF ¬ GENERATINGCFM THEN Macro _VDSetBrightness dc.w $2F3C dc.w $0004 dc.w $000C moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDSetBrightness ENDIF ; ; pascal VideoDigitizerError VDGetBrightness(VideoDigitizerComponent ci, unsigned short *brightness) ; IF ¬ GENERATINGCFM THEN Macro _VDGetBrightness dc.w $2F3C dc.w $0004 dc.w $000D moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetBrightness ENDIF ; ; pascal VideoDigitizerError VDSetContrast(VideoDigitizerComponent ci, unsigned short *contrast) ; IF ¬ GENERATINGCFM THEN Macro _VDSetContrast dc.w $2F3C dc.w $0004 dc.w $000E moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDSetContrast ENDIF ; ; pascal VideoDigitizerError VDSetHue(VideoDigitizerComponent ci, unsigned short *hue) ; IF ¬ GENERATINGCFM THEN Macro _VDSetHue dc.w $2F3C dc.w $0004 dc.w $000F moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDSetHue ENDIF ; ; pascal VideoDigitizerError VDSetSharpness(VideoDigitizerComponent ci, unsigned short *sharpness) ; IF ¬ GENERATINGCFM THEN Macro _VDSetSharpness dc.w $2F3C dc.w $0004 dc.w $0010 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDSetSharpness ENDIF ; ; pascal VideoDigitizerError VDSetSaturation(VideoDigitizerComponent ci, unsigned short *saturation) ; IF ¬ GENERATINGCFM THEN Macro _VDSetSaturation dc.w $2F3C dc.w $0004 dc.w $0011 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDSetSaturation ENDIF ; ; pascal VideoDigitizerError VDGetContrast(VideoDigitizerComponent ci, unsigned short *contrast) ; IF ¬ GENERATINGCFM THEN Macro _VDGetContrast dc.w $2F3C dc.w $0004 dc.w $0012 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetContrast ENDIF ; ; pascal VideoDigitizerError VDGetHue(VideoDigitizerComponent ci, unsigned short *hue) ; IF ¬ GENERATINGCFM THEN Macro _VDGetHue dc.w $2F3C dc.w $0004 dc.w $0013 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetHue ENDIF ; ; pascal VideoDigitizerError VDGetSharpness(VideoDigitizerComponent ci, unsigned short *sharpness) ; IF ¬ GENERATINGCFM THEN Macro _VDGetSharpness dc.w $2F3C dc.w $0004 dc.w $0014 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetSharpness ENDIF ; ; pascal VideoDigitizerError VDGetSaturation(VideoDigitizerComponent ci, unsigned short *saturation) ; IF ¬ GENERATINGCFM THEN Macro _VDGetSaturation dc.w $2F3C dc.w $0004 dc.w $0015 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetSaturation ENDIF ; ; pascal VideoDigitizerError VDGrabOneFrame(VideoDigitizerComponent ci) ; IF ¬ GENERATINGCFM THEN Macro _VDGrabOneFrame dc.w $2F3C dc.w $0000 dc.w $0016 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGrabOneFrame ENDIF ; ; pascal VideoDigitizerError VDGetMaxAuxBuffer(VideoDigitizerComponent ci, PixMapHandle *pm, Rect *r) ; IF ¬ GENERATINGCFM THEN Macro _VDGetMaxAuxBuffer dc.w $2F3C dc.w $0008 dc.w $0017 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetMaxAuxBuffer ENDIF ; ; pascal VideoDigitizerError VDGetDigitizerInfo(VideoDigitizerComponent ci, DigitizerInfo *info) ; IF ¬ GENERATINGCFM THEN Macro _VDGetDigitizerInfo dc.w $2F3C dc.w $0004 dc.w $0019 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetDigitizerInfo ENDIF ; ; pascal VideoDigitizerError VDGetCurrentFlags(VideoDigitizerComponent ci, long *inputCurrentFlag, long *outputCurrentFlag) ; IF ¬ GENERATINGCFM THEN Macro _VDGetCurrentFlags dc.w $2F3C dc.w $0008 dc.w $001A moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetCurrentFlags ENDIF ; ; pascal VideoDigitizerError VDSetKeyColor(VideoDigitizerComponent ci, long index) ; IF ¬ GENERATINGCFM THEN Macro _VDSetKeyColor dc.w $2F3C dc.w $0004 dc.w $001B moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDSetKeyColor ENDIF ; ; pascal VideoDigitizerError VDGetKeyColor(VideoDigitizerComponent ci, long *index) ; IF ¬ GENERATINGCFM THEN Macro _VDGetKeyColor dc.w $2F3C dc.w $0004 dc.w $001C moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetKeyColor ENDIF ; ; pascal VideoDigitizerError VDAddKeyColor(VideoDigitizerComponent ci, long *index) ; IF ¬ GENERATINGCFM THEN Macro _VDAddKeyColor dc.w $2F3C dc.w $0004 dc.w $001D moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDAddKeyColor ENDIF ; ; pascal VideoDigitizerError VDGetNextKeyColor(VideoDigitizerComponent ci, long index) ; IF ¬ GENERATINGCFM THEN Macro _VDGetNextKeyColor dc.w $2F3C dc.w $0004 dc.w $001E moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetNextKeyColor ENDIF ; ; pascal VideoDigitizerError VDSetKeyColorRange(VideoDigitizerComponent ci, RGBColor *minRGB, RGBColor *maxRGB) ; IF ¬ GENERATINGCFM THEN Macro _VDSetKeyColorRange dc.w $2F3C dc.w $0008 dc.w $001F moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDSetKeyColorRange ENDIF ; ; pascal VideoDigitizerError VDGetKeyColorRange(VideoDigitizerComponent ci, RGBColor *minRGB, RGBColor *maxRGB) ; IF ¬ GENERATINGCFM THEN Macro _VDGetKeyColorRange dc.w $2F3C dc.w $0008 dc.w $0020 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetKeyColorRange ENDIF ; ; pascal VideoDigitizerError VDSetDigitizerUserInterrupt(VideoDigitizerComponent ci, long flags, VdigIntUPP userInterruptProc, long refcon) ; IF ¬ GENERATINGCFM THEN Macro _VDSetDigitizerUserInterrupt dc.w $2F3C dc.w $000C dc.w $0021 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDSetDigitizerUserInterrupt ENDIF ; ; pascal VideoDigitizerError VDSetInputColorSpaceMode(VideoDigitizerComponent ci, short colorSpaceMode) ; IF ¬ GENERATINGCFM THEN Macro _VDSetInputColorSpaceMode dc.w $2F3C dc.w $0002 dc.w $0022 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDSetInputColorSpaceMode ENDIF ; ; pascal VideoDigitizerError VDGetInputColorSpaceMode(VideoDigitizerComponent ci, short *colorSpaceMode) ; IF ¬ GENERATINGCFM THEN Macro _VDGetInputColorSpaceMode dc.w $2F3C dc.w $0004 dc.w $0023 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetInputColorSpaceMode ENDIF ; ; pascal VideoDigitizerError VDSetClipState(VideoDigitizerComponent ci, short clipEnable) ; IF ¬ GENERATINGCFM THEN Macro _VDSetClipState dc.w $2F3C dc.w $0002 dc.w $0024 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDSetClipState ENDIF ; ; pascal VideoDigitizerError VDGetClipState(VideoDigitizerComponent ci, short *clipEnable) ; IF ¬ GENERATINGCFM THEN Macro _VDGetClipState dc.w $2F3C dc.w $0004 dc.w $0025 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetClipState ENDIF ; ; pascal VideoDigitizerError VDSetClipRgn(VideoDigitizerComponent ci, RgnHandle clipRegion) ; IF ¬ GENERATINGCFM THEN Macro _VDSetClipRgn dc.w $2F3C dc.w $0004 dc.w $0026 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDSetClipRgn ENDIF ; ; pascal VideoDigitizerError VDClearClipRgn(VideoDigitizerComponent ci, RgnHandle clipRegion) ; IF ¬ GENERATINGCFM THEN Macro _VDClearClipRgn dc.w $2F3C dc.w $0004 dc.w $0027 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDClearClipRgn ENDIF ; ; pascal VideoDigitizerError VDGetCLUTInUse(VideoDigitizerComponent ci, CTabHandle *colorTableHandle) ; IF ¬ GENERATINGCFM THEN Macro _VDGetCLUTInUse dc.w $2F3C dc.w $0004 dc.w $0028 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetCLUTInUse ENDIF ; ; pascal VideoDigitizerError VDSetPLLFilterType(VideoDigitizerComponent ci, short pllType) ; IF ¬ GENERATINGCFM THEN Macro _VDSetPLLFilterType dc.w $2F3C dc.w $0002 dc.w $0029 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDSetPLLFilterType ENDIF ; ; pascal VideoDigitizerError VDGetPLLFilterType(VideoDigitizerComponent ci, short *pllType) ; IF ¬ GENERATINGCFM THEN Macro _VDGetPLLFilterType dc.w $2F3C dc.w $0004 dc.w $002A moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetPLLFilterType ENDIF ; ; pascal VideoDigitizerError VDGetMaskandValue(VideoDigitizerComponent ci, unsigned short blendLevel, long *mask, long *value) ; IF ¬ GENERATINGCFM THEN Macro _VDGetMaskandValue dc.w $2F3C dc.w $000A dc.w $002B moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetMaskandValue ENDIF ; ; pascal VideoDigitizerError VDSetMasterBlendLevel(VideoDigitizerComponent ci, unsigned short *blendLevel) ; IF ¬ GENERATINGCFM THEN Macro _VDSetMasterBlendLevel dc.w $2F3C dc.w $0004 dc.w $002C moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDSetMasterBlendLevel ENDIF ; ; pascal VideoDigitizerError VDSetPlayThruDestination(VideoDigitizerComponent ci, PixMapHandle dest, Rect *destRect, MatrixRecord *m, RgnHandle mask) ; IF ¬ GENERATINGCFM THEN Macro _VDSetPlayThruDestination dc.w $2F3C dc.w $0010 dc.w $002D moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDSetPlayThruDestination ENDIF ; ; pascal VideoDigitizerError VDSetPlayThruOnOff(VideoDigitizerComponent ci, short state) ; IF ¬ GENERATINGCFM THEN Macro _VDSetPlayThruOnOff dc.w $2F3C dc.w $0002 dc.w $002E moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDSetPlayThruOnOff ENDIF ; ; pascal VideoDigitizerError VDSetFieldPreference(VideoDigitizerComponent ci, short fieldFlag) ; IF ¬ GENERATINGCFM THEN Macro _VDSetFieldPreference dc.w $2F3C dc.w $0002 dc.w $002F moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDSetFieldPreference ENDIF ; ; pascal VideoDigitizerError VDGetFieldPreference(VideoDigitizerComponent ci, short *fieldFlag) ; IF ¬ GENERATINGCFM THEN Macro _VDGetFieldPreference dc.w $2F3C dc.w $0004 dc.w $0030 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetFieldPreference ENDIF ; ; pascal VideoDigitizerError VDPreflightDestination(VideoDigitizerComponent ci, Rect *digitizerRect, PixMap **dest, Rect *destRect, MatrixRecord *m) ; IF ¬ GENERATINGCFM THEN Macro _VDPreflightDestination dc.w $2F3C dc.w $0010 dc.w $0032 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDPreflightDestination ENDIF ; ; pascal VideoDigitizerError VDPreflightGlobalRect(VideoDigitizerComponent ci, GrafPtr theWindow, Rect *globalRect) ; IF ¬ GENERATINGCFM THEN Macro _VDPreflightGlobalRect dc.w $2F3C dc.w $0008 dc.w $0033 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDPreflightGlobalRect ENDIF ; ; pascal VideoDigitizerError VDSetPlayThruGlobalRect(VideoDigitizerComponent ci, GrafPtr theWindow, Rect *globalRect) ; IF ¬ GENERATINGCFM THEN Macro _VDSetPlayThruGlobalRect dc.w $2F3C dc.w $0008 dc.w $0034 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDSetPlayThruGlobalRect ENDIF ; ; pascal VideoDigitizerError VDSetInputGammaRecord(VideoDigitizerComponent ci, VDGamRecPtr inputGammaPtr) ; IF ¬ GENERATINGCFM THEN Macro _VDSetInputGammaRecord dc.w $2F3C dc.w $0004 dc.w $0035 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDSetInputGammaRecord ENDIF ; ; pascal VideoDigitizerError VDGetInputGammaRecord(VideoDigitizerComponent ci, VDGamRecPtr *inputGammaPtr) ; IF ¬ GENERATINGCFM THEN Macro _VDGetInputGammaRecord dc.w $2F3C dc.w $0004 dc.w $0036 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetInputGammaRecord ENDIF ; ; pascal VideoDigitizerError VDSetBlackLevelValue(VideoDigitizerComponent ci, unsigned short *blackLevel) ; IF ¬ GENERATINGCFM THEN Macro _VDSetBlackLevelValue dc.w $2F3C dc.w $0004 dc.w $0037 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDSetBlackLevelValue ENDIF ; ; pascal VideoDigitizerError VDGetBlackLevelValue(VideoDigitizerComponent ci, unsigned short *blackLevel) ; IF ¬ GENERATINGCFM THEN Macro _VDGetBlackLevelValue dc.w $2F3C dc.w $0004 dc.w $0038 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetBlackLevelValue ENDIF ; ; pascal VideoDigitizerError VDSetWhiteLevelValue(VideoDigitizerComponent ci, unsigned short *whiteLevel) ; IF ¬ GENERATINGCFM THEN Macro _VDSetWhiteLevelValue dc.w $2F3C dc.w $0004 dc.w $0039 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDSetWhiteLevelValue ENDIF ; ; pascal VideoDigitizerError VDGetWhiteLevelValue(VideoDigitizerComponent ci, unsigned short *whiteLevel) ; IF ¬ GENERATINGCFM THEN Macro _VDGetWhiteLevelValue dc.w $2F3C dc.w $0004 dc.w $003A moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetWhiteLevelValue ENDIF ; ; pascal VideoDigitizerError VDGetVideoDefaults(VideoDigitizerComponent ci, unsigned short *blackLevel, unsigned short *whiteLevel, unsigned short *brightness, unsigned short *hue, unsigned short *saturation, unsigned short *contrast, unsigned short *sharpness) ; IF ¬ GENERATINGCFM THEN Macro _VDGetVideoDefaults dc.w $2F3C dc.w $001C dc.w $003B moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetVideoDefaults ENDIF ; ; pascal VideoDigitizerError VDGetNumberOfInputs(VideoDigitizerComponent ci, short *inputs) ; IF ¬ GENERATINGCFM THEN Macro _VDGetNumberOfInputs dc.w $2F3C dc.w $0004 dc.w $003C moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetNumberOfInputs ENDIF ; ; pascal VideoDigitizerError VDGetInputFormat(VideoDigitizerComponent ci, short input, short *format) ; IF ¬ GENERATINGCFM THEN Macro _VDGetInputFormat dc.w $2F3C dc.w $0006 dc.w $003D moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetInputFormat ENDIF ; ; pascal VideoDigitizerError VDSetInput(VideoDigitizerComponent ci, short input) ; IF ¬ GENERATINGCFM THEN Macro _VDSetInput dc.w $2F3C dc.w $0002 dc.w $003E moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDSetInput ENDIF ; ; pascal VideoDigitizerError VDGetInput(VideoDigitizerComponent ci, short *input) ; IF ¬ GENERATINGCFM THEN Macro _VDGetInput dc.w $2F3C dc.w $0004 dc.w $003F moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetInput ENDIF ; ; pascal VideoDigitizerError VDSetInputStandard(VideoDigitizerComponent ci, short inputStandard) ; IF ¬ GENERATINGCFM THEN Macro _VDSetInputStandard dc.w $2F3C dc.w $0002 dc.w $0040 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDSetInputStandard ENDIF ; ; pascal VideoDigitizerError VDSetupBuffers(VideoDigitizerComponent ci, VdigBufferRecListHandle bufferList) ; IF ¬ GENERATINGCFM THEN Macro _VDSetupBuffers dc.w $2F3C dc.w $0004 dc.w $0041 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDSetupBuffers ENDIF ; ; pascal VideoDigitizerError VDGrabOneFrameAsync(VideoDigitizerComponent ci, short buffer) ; IF ¬ GENERATINGCFM THEN Macro _VDGrabOneFrameAsync dc.w $2F3C dc.w $0002 dc.w $0042 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGrabOneFrameAsync ENDIF ; ; pascal VideoDigitizerError VDDone(VideoDigitizerComponent ci, short buffer) ; IF ¬ GENERATINGCFM THEN Macro _VDDone dc.w $2F3C dc.w $0002 dc.w $0043 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDDone ENDIF ; ; pascal VideoDigitizerError VDSetCompression(VideoDigitizerComponent ci, OSType compressType, short depth, Rect *bounds, CodecQ spatialQuality, CodecQ temporalQuality, long keyFrameRate) ; IF ¬ GENERATINGCFM THEN Macro _VDSetCompression dc.w $2F3C dc.w $0016 dc.w $0044 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDSetCompression ENDIF ; ; pascal VideoDigitizerError VDCompressOneFrameAsync(VideoDigitizerComponent ci) ; IF ¬ GENERATINGCFM THEN Macro _VDCompressOneFrameAsync dc.w $2F3C dc.w $0000 dc.w $0045 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDCompressOneFrameAsync ENDIF ; ; pascal VideoDigitizerError VDCompressDone(VideoDigitizerComponent ci, Boolean *done, Ptr *theData, long *dataSize, UInt8 *similarity, TimeRecord *t) ; IF ¬ GENERATINGCFM THEN Macro _VDCompressDone dc.w $2F3C dc.w $0014 dc.w $0046 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDCompressDone ENDIF ; ; pascal VideoDigitizerError VDReleaseCompressBuffer(VideoDigitizerComponent ci, Ptr bufferAddr) ; IF ¬ GENERATINGCFM THEN Macro _VDReleaseCompressBuffer dc.w $2F3C dc.w $0004 dc.w $0047 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDReleaseCompressBuffer ENDIF ; ; pascal VideoDigitizerError VDGetImageDescription(VideoDigitizerComponent ci, ImageDescriptionHandle desc) ; IF ¬ GENERATINGCFM THEN Macro _VDGetImageDescription dc.w $2F3C dc.w $0004 dc.w $0048 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetImageDescription ENDIF ; ; pascal VideoDigitizerError VDResetCompressSequence(VideoDigitizerComponent ci) ; IF ¬ GENERATINGCFM THEN Macro _VDResetCompressSequence dc.w $2F3C dc.w $0000 dc.w $0049 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDResetCompressSequence ENDIF ; ; pascal VideoDigitizerError VDSetCompressionOnOff(VideoDigitizerComponent ci, Boolean state) ; IF ¬ GENERATINGCFM THEN Macro _VDSetCompressionOnOff dc.w $2F3C dc.w $0002 dc.w $004A moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDSetCompressionOnOff ENDIF ; ; pascal VideoDigitizerError VDGetCompressionTypes(VideoDigitizerComponent ci, VDCompressionListHandle h) ; IF ¬ GENERATINGCFM THEN Macro _VDGetCompressionTypes dc.w $2F3C dc.w $0004 dc.w $004B moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetCompressionTypes ENDIF ; ; pascal VideoDigitizerError VDSetTimeBase(VideoDigitizerComponent ci, TimeBase t) ; IF ¬ GENERATINGCFM THEN Macro _VDSetTimeBase dc.w $2F3C dc.w $0004 dc.w $004C moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDSetTimeBase ENDIF ; ; pascal VideoDigitizerError VDSetFrameRate(VideoDigitizerComponent ci, Fixed framesPerSecond) ; IF ¬ GENERATINGCFM THEN Macro _VDSetFrameRate dc.w $2F3C dc.w $0004 dc.w $004D moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDSetFrameRate ENDIF ; ; pascal VideoDigitizerError VDGetDataRate(VideoDigitizerComponent ci, long *milliSecPerFrame, Fixed *framesPerSecond, long *bytesPerSecond) ; IF ¬ GENERATINGCFM THEN Macro _VDGetDataRate dc.w $2F3C dc.w $000C dc.w $004E moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetDataRate ENDIF ; ; pascal VideoDigitizerError VDGetSoundInputDriver(VideoDigitizerComponent ci, Str255 soundDriverName) ; IF ¬ GENERATINGCFM THEN Macro _VDGetSoundInputDriver dc.w $2F3C dc.w $0004 dc.w $004F moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetSoundInputDriver ENDIF ; ; pascal VideoDigitizerError VDGetDMADepths(VideoDigitizerComponent ci, long *depthArray, long *preferredDepth) ; IF ¬ GENERATINGCFM THEN Macro _VDGetDMADepths dc.w $2F3C dc.w $0008 dc.w $0050 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetDMADepths ENDIF ; ; pascal VideoDigitizerError VDGetPreferredTimeScale(VideoDigitizerComponent ci, TimeScale *preferred) ; IF ¬ GENERATINGCFM THEN Macro _VDGetPreferredTimeScale dc.w $2F3C dc.w $0004 dc.w $0051 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetPreferredTimeScale ENDIF ; ; pascal VideoDigitizerError VDReleaseAsyncBuffers(VideoDigitizerComponent ci) ; IF ¬ GENERATINGCFM THEN Macro _VDReleaseAsyncBuffers dc.w $2F3C dc.w $0000 dc.w $0052 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDReleaseAsyncBuffers ENDIF ; 83 is reserved for compatibility reasons ; ; pascal VideoDigitizerError VDSetDataRate(VideoDigitizerComponent ci, long bytesPerSecond) ; IF ¬ GENERATINGCFM THEN Macro _VDSetDataRate dc.w $2F3C dc.w $0004 dc.w $0054 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDSetDataRate ENDIF ; ; pascal VideoDigitizerError VDGetTimeCode(VideoDigitizerComponent ci, TimeRecord *atTime, void *timeCodeFormat, void *timeCodeTime) ; IF ¬ GENERATINGCFM THEN Macro _VDGetTimeCode dc.w $2F3C dc.w $000C dc.w $0055 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetTimeCode ENDIF ; ; pascal VideoDigitizerError VDUseSafeBuffers(VideoDigitizerComponent ci, Boolean useSafeBuffers) ; IF ¬ GENERATINGCFM THEN Macro _VDUseSafeBuffers dc.w $2F3C dc.w $0002 dc.w $0056 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDUseSafeBuffers ENDIF ; ; pascal VideoDigitizerError VDGetSoundInputSource(VideoDigitizerComponent ci, long videoInput, long *soundInput) ; IF ¬ GENERATINGCFM THEN Macro _VDGetSoundInputSource dc.w $2F3C dc.w $0008 dc.w $0057 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetSoundInputSource ENDIF ; ; pascal VideoDigitizerError VDGetCompressionTime(VideoDigitizerComponent ci, OSType compressionType, short depth, Rect *srcRect, CodecQ *spatialQuality, CodecQ *temporalQuality, unsigned long *compressTime) ; IF ¬ GENERATINGCFM THEN Macro _VDGetCompressionTime dc.w $2F3C dc.w $0016 dc.w $0058 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDGetCompressionTime ENDIF ; ; pascal VideoDigitizerError VDSetPreferredPacketSize(VideoDigitizerComponent ci, long preferredPacketSizeInBytes) ; IF ¬ GENERATINGCFM THEN Macro _VDSetPreferredPacketSize dc.w $2F3C dc.w $0004 dc.w $0059 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION VDSetPreferredPacketSize ENDIF ; ; General Sequence Grab stuff ; ; typedef ComponentInstance SeqGrabComponent ; typedef ComponentInstance SGChannel SeqGrabComponentType EQU 'barg' SeqGrabChannelType EQU 'sgch' SeqGrabPanelType EQU 'sgpn' SeqGrabCompressionPanelType EQU 'cmpr' SeqGrabSourcePanelType EQU 'sour' seqGrabToDisk EQU 1 seqGrabToMemory EQU 2 seqGrabDontUseTempMemory EQU 4 seqGrabAppendToFile EQU 8 seqGrabDontAddMovieResource EQU 16 seqGrabDontMakeMovie EQU 32 seqGrabPreExtendFile EQU 64 seqGrabDataProcIsInterruptSafe EQU 128 seqGrabDataProcDoesOverlappingReads EQU 256 ; typedef unsigned long SeqGrabDataOutputEnum seqGrabRecord EQU 1 seqGrabPreview EQU 2 seqGrabPlayDuringRecord EQU 4 ; typedef unsigned long SeqGrabUsageEnum seqGrabHasBounds EQU 1 seqGrabHasVolume EQU 2 seqGrabHasDiscreteSamples EQU 4 ; typedef unsigned long SeqGrabChannelInfoEnum SeqGrabFrameInfo RECORD 0 frameOffset ds.l 1 ; offset: $0 (0) frameTime ds.l 1 ; offset: $4 (4) frameSize ds.l 1 ; offset: $8 (8) frameChannel ds.l 1 ; offset: $C (12) frameRefCon ds.l 1 ; offset: $10 (16) sizeof EQU * ; size: $14 (20) ENDR ; typedef struct SeqGrabFrameInfo * SeqGrabFrameInfoPtr grabPictOffScreen EQU 1 grabPictIgnoreClip EQU 2 grabPictCurrentImage EQU 4 sgFlagControlledGrab EQU $01 SGDeviceName RECORD 0 name ds Str63 ; offset: $0 (0) icon ds.l 1 ; offset: $40 (64) flags ds.l 1 ; offset: $44 (68) refCon ds.l 1 ; offset: $48 (72) reserved ds.l 1 ; offset: $4C (76) ; zero sizeof EQU * ; size: $50 (80) ENDR sgDeviceNameFlagDeviceUnavailable EQU $01 SGDeviceListRecord RECORD 0 count ds.w 1 ; offset: $0 (0) selectedIndex ds.w 1 ; offset: $2 (2) reserved ds.l 1 ; offset: $4 (4) ; zero entry ds SGDeviceName ; offset: $8 (8) <-- really an array of length one sizeof EQU * ; size: $58 (88) ENDR ; typedef struct SGDeviceListRecord * SGDeviceListPtr ; typedef SGDeviceListPtr * SGDeviceList sgDeviceListWithIcons EQU $01 sgDeviceListDontCheckAvailability EQU $02 seqGrabWriteAppend EQU 0 seqGrabWriteReserve EQU 1 seqGrabWriteFill EQU 2 seqGrabUnpause EQU 0 seqGrabPause EQU 1 seqGrabPauseForMenu EQU 3 channelFlagDontOpenResFile EQU 2 channelFlagHasDependency EQU 4 sgPanelFlagForPanel EQU 1 seqGrabSettingsPreviewOnly EQU 1 SGOutputRecord RECORD 0 data ds.l 1 ; offset: $0 (0) <-- really an array of length one sizeof EQU * ; size: $4 (4) ENDR ; typedef struct SGOutputRecord * SGOutput channelPlayNormal EQU 0 channelPlayFast EQU 1 channelPlayHighQuality EQU 2 channelPlayAllData EQU 4 ; ; pascal ComponentResult SGInitialize(SeqGrabComponent s) ; IF ¬ GENERATINGCFM THEN Macro _SGInitialize dc.w $2F3C dc.w $0000 dc.w $0001 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGInitialize ENDIF ; ; pascal ComponentResult SGSetDataOutput(SeqGrabComponent s, const FSSpec *movieFile, long whereFlags) ; IF ¬ GENERATINGCFM THEN Macro _SGSetDataOutput dc.w $2F3C dc.w $0008 dc.w $0002 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetDataOutput ENDIF ; ; pascal ComponentResult SGGetDataOutput(SeqGrabComponent s, FSSpec *movieFile, long *whereFlags) ; IF ¬ GENERATINGCFM THEN Macro _SGGetDataOutput dc.w $2F3C dc.w $0008 dc.w $0003 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetDataOutput ENDIF ; ; pascal ComponentResult SGSetGWorld(SeqGrabComponent s, CGrafPtr gp, GDHandle gd) ; IF ¬ GENERATINGCFM THEN Macro _SGSetGWorld dc.w $2F3C dc.w $0008 dc.w $0004 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetGWorld ENDIF ; ; pascal ComponentResult SGGetGWorld(SeqGrabComponent s, CGrafPtr *gp, GDHandle *gd) ; IF ¬ GENERATINGCFM THEN Macro _SGGetGWorld dc.w $2F3C dc.w $0008 dc.w $0005 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetGWorld ENDIF ; ; pascal ComponentResult SGNewChannel(SeqGrabComponent s, OSType channelType, SGChannel *ref) ; IF ¬ GENERATINGCFM THEN Macro _SGNewChannel dc.w $2F3C dc.w $0008 dc.w $0006 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGNewChannel ENDIF ; ; pascal ComponentResult SGDisposeChannel(SeqGrabComponent s, SGChannel c) ; IF ¬ GENERATINGCFM THEN Macro _SGDisposeChannel dc.w $2F3C dc.w $0004 dc.w $0007 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGDisposeChannel ENDIF ; ; pascal ComponentResult SGStartPreview(SeqGrabComponent s) ; IF ¬ GENERATINGCFM THEN Macro _SGStartPreview dc.w $2F3C dc.w $0000 dc.w $0010 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGStartPreview ENDIF ; ; pascal ComponentResult SGStartRecord(SeqGrabComponent s) ; IF ¬ GENERATINGCFM THEN Macro _SGStartRecord dc.w $2F3C dc.w $0000 dc.w $0011 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGStartRecord ENDIF ; ; pascal ComponentResult SGIdle(SeqGrabComponent s) ; IF ¬ GENERATINGCFM THEN Macro _SGIdle dc.w $2F3C dc.w $0000 dc.w $0012 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGIdle ENDIF ; ; pascal ComponentResult SGStop(SeqGrabComponent s) ; IF ¬ GENERATINGCFM THEN Macro _SGStop dc.w $2F3C dc.w $0000 dc.w $0013 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGStop ENDIF ; ; pascal ComponentResult SGPause(SeqGrabComponent s, Byte pause) ; IF ¬ GENERATINGCFM THEN Macro _SGPause dc.w $2F3C dc.w $0002 dc.w $0014 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGPause ENDIF ; ; pascal ComponentResult SGPrepare(SeqGrabComponent s, Boolean prepareForPreview, Boolean prepareForRecord) ; IF ¬ GENERATINGCFM THEN Macro _SGPrepare dc.w $2F3C dc.w $0004 dc.w $0015 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGPrepare ENDIF ; ; pascal ComponentResult SGRelease(SeqGrabComponent s) ; IF ¬ GENERATINGCFM THEN Macro _SGRelease dc.w $2F3C dc.w $0000 dc.w $0016 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGRelease ENDIF ; ; pascal Movie SGGetMovie(SeqGrabComponent s) ; IF ¬ GENERATINGCFM THEN Macro _SGGetMovie dc.w $2F3C dc.w $0000 dc.w $0017 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetMovie ENDIF ; ; pascal ComponentResult SGSetMaximumRecordTime(SeqGrabComponent s, unsigned long ticks) ; IF ¬ GENERATINGCFM THEN Macro _SGSetMaximumRecordTime dc.w $2F3C dc.w $0004 dc.w $0018 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetMaximumRecordTime ENDIF ; ; pascal ComponentResult SGGetMaximumRecordTime(SeqGrabComponent s, unsigned long *ticks) ; IF ¬ GENERATINGCFM THEN Macro _SGGetMaximumRecordTime dc.w $2F3C dc.w $0004 dc.w $0019 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetMaximumRecordTime ENDIF ; ; pascal ComponentResult SGGetStorageSpaceRemaining(SeqGrabComponent s, unsigned long *bytes) ; IF ¬ GENERATINGCFM THEN Macro _SGGetStorageSpaceRemaining dc.w $2F3C dc.w $0004 dc.w $001A moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetStorageSpaceRemaining ENDIF ; ; pascal ComponentResult SGGetTimeRemaining(SeqGrabComponent s, long *ticksLeft) ; IF ¬ GENERATINGCFM THEN Macro _SGGetTimeRemaining dc.w $2F3C dc.w $0004 dc.w $001B moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetTimeRemaining ENDIF ; ; pascal ComponentResult SGGrabPict(SeqGrabComponent s, PicHandle *p, const Rect *bounds, short offscreenDepth, long grabPictFlags) ; IF ¬ GENERATINGCFM THEN Macro _SGGrabPict dc.w $2F3C dc.w $000E dc.w $001C moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGrabPict ENDIF ; ; pascal ComponentResult SGGetLastMovieResID(SeqGrabComponent s, short *resID) ; IF ¬ GENERATINGCFM THEN Macro _SGGetLastMovieResID dc.w $2F3C dc.w $0004 dc.w $001D moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetLastMovieResID ENDIF ; ; pascal ComponentResult SGSetFlags(SeqGrabComponent s, long sgFlags) ; IF ¬ GENERATINGCFM THEN Macro _SGSetFlags dc.w $2F3C dc.w $0004 dc.w $001E moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetFlags ENDIF ; ; pascal ComponentResult SGGetFlags(SeqGrabComponent s, long *sgFlags) ; IF ¬ GENERATINGCFM THEN Macro _SGGetFlags dc.w $2F3C dc.w $0004 dc.w $001F moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetFlags ENDIF ; ; pascal ComponentResult SGSetDataProc(SeqGrabComponent s, SGDataUPP proc, long refCon) ; IF ¬ GENERATINGCFM THEN Macro _SGSetDataProc dc.w $2F3C dc.w $0008 dc.w $0020 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetDataProc ENDIF ; ; pascal ComponentResult SGNewChannelFromComponent(SeqGrabComponent s, SGChannel *newChannel, Component sgChannelComponent) ; IF ¬ GENERATINGCFM THEN Macro _SGNewChannelFromComponent dc.w $2F3C dc.w $0008 dc.w $0021 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGNewChannelFromComponent ENDIF ; ; pascal ComponentResult SGDisposeDeviceList(SeqGrabComponent s, SGDeviceList list) ; IF ¬ GENERATINGCFM THEN Macro _SGDisposeDeviceList dc.w $2F3C dc.w $0004 dc.w $0022 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGDisposeDeviceList ENDIF ; ; pascal ComponentResult SGAppendDeviceListToMenu(SeqGrabComponent s, SGDeviceList list, MenuHandle mh) ; IF ¬ GENERATINGCFM THEN Macro _SGAppendDeviceListToMenu dc.w $2F3C dc.w $0008 dc.w $0023 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGAppendDeviceListToMenu ENDIF ; ; pascal ComponentResult SGSetSettings(SeqGrabComponent s, UserData ud, long flags) ; IF ¬ GENERATINGCFM THEN Macro _SGSetSettings dc.w $2F3C dc.w $0008 dc.w $0024 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetSettings ENDIF ; ; pascal ComponentResult SGGetSettings(SeqGrabComponent s, UserData *ud, long flags) ; IF ¬ GENERATINGCFM THEN Macro _SGGetSettings dc.w $2F3C dc.w $0008 dc.w $0025 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetSettings ENDIF ; ; pascal ComponentResult SGGetIndChannel(SeqGrabComponent s, short index, SGChannel *ref, OSType *chanType) ; IF ¬ GENERATINGCFM THEN Macro _SGGetIndChannel dc.w $2F3C dc.w $000A dc.w $0026 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetIndChannel ENDIF ; ; pascal ComponentResult SGUpdate(SeqGrabComponent s, RgnHandle updateRgn) ; IF ¬ GENERATINGCFM THEN Macro _SGUpdate dc.w $2F3C dc.w $0004 dc.w $0027 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGUpdate ENDIF ; ; pascal ComponentResult SGGetPause(SeqGrabComponent s, Byte *paused) ; IF ¬ GENERATINGCFM THEN Macro _SGGetPause dc.w $2F3C dc.w $0004 dc.w $0028 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetPause ENDIF ; typedef const Component * ConstComponentListPtr ; ; pascal ComponentResult SGSettingsDialog(SeqGrabComponent s, SGChannel c, short numPanels, ConstComponentListPtr panelList, long flags, SGModalFilterUPP proc, long procRefNum) ; IF ¬ GENERATINGCFM THEN Macro _SGSettingsDialog dc.w $2F3C dc.w $0016 dc.w $0029 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSettingsDialog ENDIF ; ; pascal ComponentResult SGGetAlignmentProc(SeqGrabComponent s, ICMAlignmentProcRecordPtr alignmentProc) ; IF ¬ GENERATINGCFM THEN Macro _SGGetAlignmentProc dc.w $2F3C dc.w $0004 dc.w $002A moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetAlignmentProc ENDIF ; ; pascal ComponentResult SGSetChannelSettings(SeqGrabComponent s, SGChannel c, UserData ud, long flags) ; IF ¬ GENERATINGCFM THEN Macro _SGSetChannelSettings dc.w $2F3C dc.w $000C dc.w $002B moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetChannelSettings ENDIF ; ; pascal ComponentResult SGGetChannelSettings(SeqGrabComponent s, SGChannel c, UserData *ud, long flags) ; IF ¬ GENERATINGCFM THEN Macro _SGGetChannelSettings dc.w $2F3C dc.w $000C dc.w $002C moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetChannelSettings ENDIF ; ; pascal ComponentResult SGGetMode(SeqGrabComponent s, Boolean *previewMode, Boolean *recordMode) ; IF ¬ GENERATINGCFM THEN Macro _SGGetMode dc.w $2F3C dc.w $0008 dc.w $002D moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetMode ENDIF ; ; pascal ComponentResult SGSetDataRef(SeqGrabComponent s, Handle dataRef, OSType dataRefType, long whereFlags) ; IF ¬ GENERATINGCFM THEN Macro _SGSetDataRef dc.w $2F3C dc.w $000C dc.w $002E moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetDataRef ENDIF ; ; pascal ComponentResult SGGetDataRef(SeqGrabComponent s, Handle *dataRef, OSType *dataRefType, long *whereFlags) ; IF ¬ GENERATINGCFM THEN Macro _SGGetDataRef dc.w $2F3C dc.w $000C dc.w $002F moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetDataRef ENDIF ; ; pascal ComponentResult SGNewOutput(SeqGrabComponent s, Handle dataRef, OSType dataRefType, long whereFlags, SGOutput *sgOut) ; IF ¬ GENERATINGCFM THEN Macro _SGNewOutput dc.w $2F3C dc.w $0010 dc.w $0030 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGNewOutput ENDIF ; ; pascal ComponentResult SGDisposeOutput(SeqGrabComponent s, SGOutput sgOut) ; IF ¬ GENERATINGCFM THEN Macro _SGDisposeOutput dc.w $2F3C dc.w $0004 dc.w $0031 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGDisposeOutput ENDIF ; ; pascal ComponentResult SGSetOutputFlags(SeqGrabComponent s, SGOutput sgOut, long whereFlags) ; IF ¬ GENERATINGCFM THEN Macro _SGSetOutputFlags dc.w $2F3C dc.w $0008 dc.w $0032 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetOutputFlags ENDIF ; ; pascal ComponentResult SGSetChannelOutput(SeqGrabComponent s, SGChannel c, SGOutput sgOut) ; IF ¬ GENERATINGCFM THEN Macro _SGSetChannelOutput dc.w $2F3C dc.w $0008 dc.w $0033 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetChannelOutput ENDIF ; ; pascal ComponentResult SGGetDataOutputStorageSpaceRemaining(SeqGrabComponent s, SGOutput sgOut, unsigned long *space) ; IF ¬ GENERATINGCFM THEN Macro _SGGetDataOutputStorageSpaceRemaining dc.w $2F3C dc.w $0008 dc.w $0034 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetDataOutputStorageSpaceRemaining ENDIF ; ; pascal ComponentResult SGHandleUpdateEvent(SeqGrabComponent s, EventRecord *event, Boolean *handled) ; IF ¬ GENERATINGCFM THEN Macro _SGHandleUpdateEvent dc.w $2F3C dc.w $0008 dc.w $0035 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGHandleUpdateEvent ENDIF ; ; calls from Channel to seqGrab ; ; ; pascal ComponentResult SGWriteMovieData(SeqGrabComponent s, SGChannel c, Ptr p, long len, long *offset) ; IF ¬ GENERATINGCFM THEN Macro _SGWriteMovieData dc.w $2F3C dc.w $0010 dc.w $0100 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGWriteMovieData ENDIF ; ; pascal ComponentResult SGAddFrameReference(SeqGrabComponent s, SeqGrabFrameInfoPtr frameInfo) ; IF ¬ GENERATINGCFM THEN Macro _SGAddFrameReference dc.w $2F3C dc.w $0004 dc.w $0101 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGAddFrameReference ENDIF ; ; pascal ComponentResult SGGetNextFrameReference(SeqGrabComponent s, SeqGrabFrameInfoPtr frameInfo, TimeValue *frameDuration, long *frameNumber) ; IF ¬ GENERATINGCFM THEN Macro _SGGetNextFrameReference dc.w $2F3C dc.w $000C dc.w $0102 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetNextFrameReference ENDIF ; ; pascal ComponentResult SGGetTimeBase(SeqGrabComponent s, TimeBase *tb) ; IF ¬ GENERATINGCFM THEN Macro _SGGetTimeBase dc.w $2F3C dc.w $0004 dc.w $0103 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetTimeBase ENDIF ; ; pascal ComponentResult SGSortDeviceList(SeqGrabComponent s, SGDeviceList list) ; IF ¬ GENERATINGCFM THEN Macro _SGSortDeviceList dc.w $2F3C dc.w $0004 dc.w $0104 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSortDeviceList ENDIF ; ; pascal ComponentResult SGAddMovieData(SeqGrabComponent s, SGChannel c, Ptr p, long len, long *offset, long chRefCon, TimeValue time, short writeType) ; IF ¬ GENERATINGCFM THEN Macro _SGAddMovieData dc.w $2F3C dc.w $001A dc.w $0105 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGAddMovieData ENDIF ; ; pascal ComponentResult SGChangedSource(SeqGrabComponent s, SGChannel c) ; IF ¬ GENERATINGCFM THEN Macro _SGChangedSource dc.w $2F3C dc.w $0004 dc.w $0106 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGChangedSource ENDIF ; ** Sequence Grab CHANNEL Component Stuff ** ; ; pascal ComponentResult SGSetChannelUsage(SGChannel c, long usage) ; IF ¬ GENERATINGCFM THEN Macro _SGSetChannelUsage dc.w $2F3C dc.w $0004 dc.w $0080 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetChannelUsage ENDIF ; ; pascal ComponentResult SGGetChannelUsage(SGChannel c, long *usage) ; IF ¬ GENERATINGCFM THEN Macro _SGGetChannelUsage dc.w $2F3C dc.w $0004 dc.w $0081 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetChannelUsage ENDIF ; ; pascal ComponentResult SGSetChannelBounds(SGChannel c, const Rect *bounds) ; IF ¬ GENERATINGCFM THEN Macro _SGSetChannelBounds dc.w $2F3C dc.w $0004 dc.w $0082 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetChannelBounds ENDIF ; ; pascal ComponentResult SGGetChannelBounds(SGChannel c, Rect *bounds) ; IF ¬ GENERATINGCFM THEN Macro _SGGetChannelBounds dc.w $2F3C dc.w $0004 dc.w $0083 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetChannelBounds ENDIF ; ; pascal ComponentResult SGSetChannelVolume(SGChannel c, short volume) ; IF ¬ GENERATINGCFM THEN Macro _SGSetChannelVolume dc.w $2F3C dc.w $0002 dc.w $0084 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetChannelVolume ENDIF ; ; pascal ComponentResult SGGetChannelVolume(SGChannel c, short *volume) ; IF ¬ GENERATINGCFM THEN Macro _SGGetChannelVolume dc.w $2F3C dc.w $0004 dc.w $0085 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetChannelVolume ENDIF ; ; pascal ComponentResult SGGetChannelInfo(SGChannel c, long *channelInfo) ; IF ¬ GENERATINGCFM THEN Macro _SGGetChannelInfo dc.w $2F3C dc.w $0004 dc.w $0086 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetChannelInfo ENDIF ; ; pascal ComponentResult SGSetChannelPlayFlags(SGChannel c, long playFlags) ; IF ¬ GENERATINGCFM THEN Macro _SGSetChannelPlayFlags dc.w $2F3C dc.w $0004 dc.w $0087 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetChannelPlayFlags ENDIF ; ; pascal ComponentResult SGGetChannelPlayFlags(SGChannel c, long *playFlags) ; IF ¬ GENERATINGCFM THEN Macro _SGGetChannelPlayFlags dc.w $2F3C dc.w $0004 dc.w $0088 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetChannelPlayFlags ENDIF ; ; pascal ComponentResult SGSetChannelMaxFrames(SGChannel c, long frameCount) ; IF ¬ GENERATINGCFM THEN Macro _SGSetChannelMaxFrames dc.w $2F3C dc.w $0004 dc.w $0089 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetChannelMaxFrames ENDIF ; ; pascal ComponentResult SGGetChannelMaxFrames(SGChannel c, long *frameCount) ; IF ¬ GENERATINGCFM THEN Macro _SGGetChannelMaxFrames dc.w $2F3C dc.w $0004 dc.w $008A moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetChannelMaxFrames ENDIF ; ; pascal ComponentResult SGSetChannelRefCon(SGChannel c, long refCon) ; IF ¬ GENERATINGCFM THEN Macro _SGSetChannelRefCon dc.w $2F3C dc.w $0004 dc.w $008B moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetChannelRefCon ENDIF ; ; pascal ComponentResult SGSetChannelClip(SGChannel c, RgnHandle theClip) ; IF ¬ GENERATINGCFM THEN Macro _SGSetChannelClip dc.w $2F3C dc.w $0004 dc.w $008C moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetChannelClip ENDIF ; ; pascal ComponentResult SGGetChannelClip(SGChannel c, RgnHandle *theClip) ; IF ¬ GENERATINGCFM THEN Macro _SGGetChannelClip dc.w $2F3C dc.w $0004 dc.w $008D moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetChannelClip ENDIF ; ; pascal ComponentResult SGGetChannelSampleDescription(SGChannel c, Handle sampleDesc) ; IF ¬ GENERATINGCFM THEN Macro _SGGetChannelSampleDescription dc.w $2F3C dc.w $0004 dc.w $008E moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetChannelSampleDescription ENDIF ; ; pascal ComponentResult SGGetChannelDeviceList(SGChannel c, long selectionFlags, SGDeviceList *list) ; IF ¬ GENERATINGCFM THEN Macro _SGGetChannelDeviceList dc.w $2F3C dc.w $0008 dc.w $008F moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetChannelDeviceList ENDIF ; ; pascal ComponentResult SGSetChannelDevice(SGChannel c, StringPtr name) ; IF ¬ GENERATINGCFM THEN Macro _SGSetChannelDevice dc.w $2F3C dc.w $0004 dc.w $0090 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetChannelDevice ENDIF ; ; pascal ComponentResult SGSetChannelMatrix(SGChannel c, const MatrixRecord *m) ; IF ¬ GENERATINGCFM THEN Macro _SGSetChannelMatrix dc.w $2F3C dc.w $0004 dc.w $0091 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetChannelMatrix ENDIF ; ; pascal ComponentResult SGGetChannelMatrix(SGChannel c, MatrixRecord *m) ; IF ¬ GENERATINGCFM THEN Macro _SGGetChannelMatrix dc.w $2F3C dc.w $0004 dc.w $0092 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetChannelMatrix ENDIF ; ; pascal ComponentResult SGGetChannelTimeScale(SGChannel c, TimeScale *scale) ; IF ¬ GENERATINGCFM THEN Macro _SGGetChannelTimeScale dc.w $2F3C dc.w $0004 dc.w $0093 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetChannelTimeScale ENDIF ; ; pascal ComponentResult SGChannelPutPicture(SGChannel c) ; IF ¬ GENERATINGCFM THEN Macro _SGChannelPutPicture dc.w $2F3C dc.w $0000 dc.w $0094 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGChannelPutPicture ENDIF ; ; pascal ComponentResult SGChannelSetRequestedDataRate(SGChannel c, long bytesPerSecond) ; IF ¬ GENERATINGCFM THEN Macro _SGChannelSetRequestedDataRate dc.w $2F3C dc.w $0004 dc.w $0095 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGChannelSetRequestedDataRate ENDIF ; ; pascal ComponentResult SGChannelGetRequestedDataRate(SGChannel c, long *bytesPerSecond) ; IF ¬ GENERATINGCFM THEN Macro _SGChannelGetRequestedDataRate dc.w $2F3C dc.w $0004 dc.w $0096 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGChannelGetRequestedDataRate ENDIF ; ; pascal ComponentResult SGChannelSetDataSourceName(SGChannel c, ConstStr255Param name, ScriptCode scriptTag) ; IF ¬ GENERATINGCFM THEN Macro _SGChannelSetDataSourceName dc.w $2F3C dc.w $0006 dc.w $0097 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGChannelSetDataSourceName ENDIF ; ; pascal ComponentResult SGChannelGetDataSourceName(SGChannel c, Str255 name, ScriptCode *scriptTag) ; IF ¬ GENERATINGCFM THEN Macro _SGChannelGetDataSourceName dc.w $2F3C dc.w $0008 dc.w $0098 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGChannelGetDataSourceName ENDIF ; ; calls from seqGrab to Channel ; ; ; pascal ComponentResult SGInitChannel(SGChannel c, SeqGrabComponent owner) ; IF ¬ GENERATINGCFM THEN Macro _SGInitChannel dc.w $2F3C dc.w $0004 dc.w $0180 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGInitChannel ENDIF ; ; pascal ComponentResult SGWriteSamples(SGChannel c, Movie m, AliasHandle theFile) ; IF ¬ GENERATINGCFM THEN Macro _SGWriteSamples dc.w $2F3C dc.w $0008 dc.w $0181 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGWriteSamples ENDIF ; ; pascal ComponentResult SGGetDataRate(SGChannel c, long *bytesPerSecond) ; IF ¬ GENERATINGCFM THEN Macro _SGGetDataRate dc.w $2F3C dc.w $0004 dc.w $0182 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetDataRate ENDIF ; ; pascal ComponentResult SGAlignChannelRect(SGChannel c, Rect *r) ; IF ¬ GENERATINGCFM THEN Macro _SGAlignChannelRect dc.w $2F3C dc.w $0004 dc.w $0183 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGAlignChannelRect ENDIF ; ; Dorky dialog panel calls ; ; ; pascal ComponentResult SGPanelGetDitl(SeqGrabComponent s, Handle *ditl) ; IF ¬ GENERATINGCFM THEN Macro _SGPanelGetDitl dc.w $2F3C dc.w $0004 dc.w $0200 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGPanelGetDitl ENDIF ; ; pascal ComponentResult SGPanelGetTitle(SeqGrabComponent s, Str255 title) ; IF ¬ GENERATINGCFM THEN Macro _SGPanelGetTitle dc.w $2F3C dc.w $0004 dc.w $0201 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGPanelGetTitle ENDIF ; ; pascal ComponentResult SGPanelCanRun(SeqGrabComponent s, SGChannel c) ; IF ¬ GENERATINGCFM THEN Macro _SGPanelCanRun dc.w $2F3C dc.w $0004 dc.w $0202 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGPanelCanRun ENDIF ; ; pascal ComponentResult SGPanelInstall(SeqGrabComponent s, SGChannel c, DialogPtr d, short itemOffset) ; IF ¬ GENERATINGCFM THEN Macro _SGPanelInstall dc.w $2F3C dc.w $000A dc.w $0203 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGPanelInstall ENDIF ; ; pascal ComponentResult SGPanelEvent(SeqGrabComponent s, SGChannel c, DialogPtr d, short itemOffset, EventRecord *theEvent, short *itemHit, Boolean *handled) ; IF ¬ GENERATINGCFM THEN Macro _SGPanelEvent dc.w $2F3C dc.w $0016 dc.w $0204 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGPanelEvent ENDIF ; ; pascal ComponentResult SGPanelItem(SeqGrabComponent s, SGChannel c, DialogPtr d, short itemOffset, short itemNum) ; IF ¬ GENERATINGCFM THEN Macro _SGPanelItem dc.w $2F3C dc.w $000C dc.w $0205 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGPanelItem ENDIF ; ; pascal ComponentResult SGPanelRemove(SeqGrabComponent s, SGChannel c, DialogPtr d, short itemOffset) ; IF ¬ GENERATINGCFM THEN Macro _SGPanelRemove dc.w $2F3C dc.w $000A dc.w $0206 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGPanelRemove ENDIF ; ; pascal ComponentResult SGPanelSetGrabber(SeqGrabComponent s, SeqGrabComponent sg) ; IF ¬ GENERATINGCFM THEN Macro _SGPanelSetGrabber dc.w $2F3C dc.w $0004 dc.w $0207 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGPanelSetGrabber ENDIF ; ; pascal ComponentResult SGPanelSetResFile(SeqGrabComponent s, short resRef) ; IF ¬ GENERATINGCFM THEN Macro _SGPanelSetResFile dc.w $2F3C dc.w $0002 dc.w $0208 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGPanelSetResFile ENDIF ; ; pascal ComponentResult SGPanelGetSettings(SeqGrabComponent s, SGChannel c, UserData *ud, long flags) ; IF ¬ GENERATINGCFM THEN Macro _SGPanelGetSettings dc.w $2F3C dc.w $000C dc.w $0209 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGPanelGetSettings ENDIF ; ; pascal ComponentResult SGPanelSetSettings(SeqGrabComponent s, SGChannel c, UserData ud, long flags) ; IF ¬ GENERATINGCFM THEN Macro _SGPanelSetSettings dc.w $2F3C dc.w $000C dc.w $020A moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGPanelSetSettings ENDIF ; ; pascal ComponentResult SGPanelValidateInput(SeqGrabComponent s, Boolean *ok) ; IF ¬ GENERATINGCFM THEN Macro _SGPanelValidateInput dc.w $2F3C dc.w $0004 dc.w $020B moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGPanelValidateInput ENDIF ; ; pascal ComponentResult SGPanelSetEventFilter(SeqGrabComponent s, SGModalFilterUPP proc, long refCon) ; IF ¬ GENERATINGCFM THEN Macro _SGPanelSetEventFilter dc.w $2F3C dc.w $0008 dc.w $020C moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGPanelSetEventFilter ENDIF ; ** Sequence Grab VIDEO CHANNEL Component Stuff ** ; ; Video stuff ; SGCompressInfo RECORD 0 buffer ds.l 1 ; offset: $0 (0) bufferSize ds.l 1 ; offset: $4 (4) similarity ds.b 1 ; offset: $8 (8) reserved ds.b 1 ; offset: $9 (9) sizeof EQU * ; size: $A (10) ENDR VideoBottles RECORD 0 procCount ds.w 1 ; offset: $0 (0) grabProc ds.l 1 ; offset: $2 (2) grabCompleteProc ds.l 1 ; offset: $6 (6) displayProc ds.l 1 ; offset: $A (10) compressProc ds.l 1 ; offset: $E (14) compressCompleteProc ds.l 1 ; offset: $12 (18) addFrameProc ds.l 1 ; offset: $16 (22) transferFrameProc ds.l 1 ; offset: $1A (26) grabCompressCompleteProc ds.l 1 ; offset: $1E (30) displayCompressProc ds.l 1 ; offset: $22 (34) sizeof EQU * ; size: $26 (38) ENDR ; ; pascal ComponentResult SGGetSrcVideoBounds(SGChannel c, Rect *r) ; IF ¬ GENERATINGCFM THEN Macro _SGGetSrcVideoBounds dc.w $2F3C dc.w $0004 dc.w $0100 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetSrcVideoBounds ENDIF ; ; pascal ComponentResult SGSetVideoRect(SGChannel c, const Rect *r) ; IF ¬ GENERATINGCFM THEN Macro _SGSetVideoRect dc.w $2F3C dc.w $0004 dc.w $0101 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetVideoRect ENDIF ; ; pascal ComponentResult SGGetVideoRect(SGChannel c, Rect *r) ; IF ¬ GENERATINGCFM THEN Macro _SGGetVideoRect dc.w $2F3C dc.w $0004 dc.w $0102 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetVideoRect ENDIF ; ; pascal ComponentResult SGGetVideoCompressorType(SGChannel c, OSType *compressorType) ; IF ¬ GENERATINGCFM THEN Macro _SGGetVideoCompressorType dc.w $2F3C dc.w $0004 dc.w $0103 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetVideoCompressorType ENDIF ; ; pascal ComponentResult SGSetVideoCompressorType(SGChannel c, OSType compressorType) ; IF ¬ GENERATINGCFM THEN Macro _SGSetVideoCompressorType dc.w $2F3C dc.w $0004 dc.w $0104 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetVideoCompressorType ENDIF ; ; pascal ComponentResult SGSetVideoCompressor(SGChannel c, short depth, CompressorComponent compressor, CodecQ spatialQuality, CodecQ temporalQuality, long keyFrameRate) ; IF ¬ GENERATINGCFM THEN Macro _SGSetVideoCompressor dc.w $2F3C dc.w $0012 dc.w $0105 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetVideoCompressor ENDIF ; ; pascal ComponentResult SGGetVideoCompressor(SGChannel c, short *depth, CompressorComponent *compressor, CodecQ *spatialQuality, CodecQ *temporalQuality, long *keyFrameRate) ; IF ¬ GENERATINGCFM THEN Macro _SGGetVideoCompressor dc.w $2F3C dc.w $0014 dc.w $0106 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetVideoCompressor ENDIF ; ; pascal ComponentInstance SGGetVideoDigitizerComponent(SGChannel c) ; IF ¬ GENERATINGCFM THEN Macro _SGGetVideoDigitizerComponent dc.w $2F3C dc.w $0000 dc.w $0107 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetVideoDigitizerComponent ENDIF ; ; pascal ComponentResult SGSetVideoDigitizerComponent(SGChannel c, ComponentInstance vdig) ; IF ¬ GENERATINGCFM THEN Macro _SGSetVideoDigitizerComponent dc.w $2F3C dc.w $0004 dc.w $0108 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetVideoDigitizerComponent ENDIF ; ; pascal ComponentResult SGVideoDigitizerChanged(SGChannel c) ; IF ¬ GENERATINGCFM THEN Macro _SGVideoDigitizerChanged dc.w $2F3C dc.w $0000 dc.w $0109 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGVideoDigitizerChanged ENDIF ; ; pascal ComponentResult SGSetVideoBottlenecks(SGChannel c, VideoBottles *vb) ; IF ¬ GENERATINGCFM THEN Macro _SGSetVideoBottlenecks dc.w $2F3C dc.w $0004 dc.w $010A moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetVideoBottlenecks ENDIF ; ; pascal ComponentResult SGGetVideoBottlenecks(SGChannel c, VideoBottles *vb) ; IF ¬ GENERATINGCFM THEN Macro _SGGetVideoBottlenecks dc.w $2F3C dc.w $0004 dc.w $010B moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetVideoBottlenecks ENDIF ; ; pascal ComponentResult SGGrabFrame(SGChannel c, short bufferNum) ; IF ¬ GENERATINGCFM THEN Macro _SGGrabFrame dc.w $2F3C dc.w $0002 dc.w $010C moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGrabFrame ENDIF ; ; pascal ComponentResult SGGrabFrameComplete(SGChannel c, short bufferNum, Boolean *done) ; IF ¬ GENERATINGCFM THEN Macro _SGGrabFrameComplete dc.w $2F3C dc.w $0006 dc.w $010D moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGrabFrameComplete ENDIF ; ; pascal ComponentResult SGDisplayFrame(SGChannel c, short bufferNum, const MatrixRecord *mp, RgnHandle clipRgn) ; IF ¬ GENERATINGCFM THEN Macro _SGDisplayFrame dc.w $2F3C dc.w $000A dc.w $010E moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGDisplayFrame ENDIF ; ; pascal ComponentResult SGCompressFrame(SGChannel c, short bufferNum) ; IF ¬ GENERATINGCFM THEN Macro _SGCompressFrame dc.w $2F3C dc.w $0002 dc.w $010F moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGCompressFrame ENDIF ; ; pascal ComponentResult SGCompressFrameComplete(SGChannel c, short bufferNum, Boolean *done, SGCompressInfo *ci) ; IF ¬ GENERATINGCFM THEN Macro _SGCompressFrameComplete dc.w $2F3C dc.w $000A dc.w $0110 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGCompressFrameComplete ENDIF ; ; pascal ComponentResult SGAddFrame(SGChannel c, short bufferNum, TimeValue atTime, TimeScale scale, const SGCompressInfo *ci) ; IF ¬ GENERATINGCFM THEN Macro _SGAddFrame dc.w $2F3C dc.w $000E dc.w $0111 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGAddFrame ENDIF ; ; pascal ComponentResult SGTransferFrameForCompress(SGChannel c, short bufferNum, const MatrixRecord *mp, RgnHandle clipRgn) ; IF ¬ GENERATINGCFM THEN Macro _SGTransferFrameForCompress dc.w $2F3C dc.w $000A dc.w $0112 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGTransferFrameForCompress ENDIF ; ; pascal ComponentResult SGSetCompressBuffer(SGChannel c, short depth, const Rect *compressSize) ; IF ¬ GENERATINGCFM THEN Macro _SGSetCompressBuffer dc.w $2F3C dc.w $0006 dc.w $0113 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetCompressBuffer ENDIF ; ; pascal ComponentResult SGGetCompressBuffer(SGChannel c, short *depth, Rect *compressSize) ; IF ¬ GENERATINGCFM THEN Macro _SGGetCompressBuffer dc.w $2F3C dc.w $0008 dc.w $0114 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetCompressBuffer ENDIF ; ; pascal ComponentResult SGGetBufferInfo(SGChannel c, short bufferNum, PixMapHandle *bufferPM, Rect *bufferRect, GWorldPtr *compressBuffer, Rect *compressBufferRect) ; IF ¬ GENERATINGCFM THEN Macro _SGGetBufferInfo dc.w $2F3C dc.w $0012 dc.w $0115 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetBufferInfo ENDIF ; ; pascal ComponentResult SGSetUseScreenBuffer(SGChannel c, Boolean useScreenBuffer) ; IF ¬ GENERATINGCFM THEN Macro _SGSetUseScreenBuffer dc.w $2F3C dc.w $0002 dc.w $0116 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetUseScreenBuffer ENDIF ; ; pascal ComponentResult SGGetUseScreenBuffer(SGChannel c, Boolean *useScreenBuffer) ; IF ¬ GENERATINGCFM THEN Macro _SGGetUseScreenBuffer dc.w $2F3C dc.w $0004 dc.w $0117 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetUseScreenBuffer ENDIF ; ; pascal ComponentResult SGGrabCompressComplete(SGChannel c, Boolean *done, SGCompressInfo *ci, TimeRecord *tr) ; IF ¬ GENERATINGCFM THEN Macro _SGGrabCompressComplete dc.w $2F3C dc.w $000C dc.w $0118 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGrabCompressComplete ENDIF ; ; pascal ComponentResult SGDisplayCompress(SGChannel c, Ptr dataPtr, ImageDescriptionHandle desc, MatrixRecord *mp, RgnHandle clipRgn) ; IF ¬ GENERATINGCFM THEN Macro _SGDisplayCompress dc.w $2F3C dc.w $0010 dc.w $0119 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGDisplayCompress ENDIF ; ; pascal ComponentResult SGSetFrameRate(SGChannel c, Fixed frameRate) ; IF ¬ GENERATINGCFM THEN Macro _SGSetFrameRate dc.w $2F3C dc.w $0004 dc.w $011A moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetFrameRate ENDIF ; ; pascal ComponentResult SGGetFrameRate(SGChannel c, Fixed *frameRate) ; IF ¬ GENERATINGCFM THEN Macro _SGGetFrameRate dc.w $2F3C dc.w $0004 dc.w $011B moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetFrameRate ENDIF ; ; pascal ComponentResult SGSetPreferredPacketSize(SGChannel c, long preferredPacketSizeInBytes) ; IF ¬ GENERATINGCFM THEN Macro _SGSetPreferredPacketSize dc.w $2F3C dc.w $0004 dc.w $0121 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetPreferredPacketSize ENDIF ; ; pascal ComponentResult SGGetPreferredPacketSize(SGChannel c, long *preferredPacketSizeInBytes) ; IF ¬ GENERATINGCFM THEN Macro _SGGetPreferredPacketSize dc.w $2F3C dc.w $0004 dc.w $0122 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetPreferredPacketSize ENDIF ; ; pascal ComponentResult SGSetUserVideoCompressorList(SGChannel c, Handle compressorTypes) ; IF ¬ GENERATINGCFM THEN Macro _SGSetUserVideoCompressorList dc.w $2F3C dc.w $0004 dc.w $0123 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetUserVideoCompressorList ENDIF ; ; pascal ComponentResult SGGetUserVideoCompressorList(SGChannel c, Handle *compressorTypes) ; IF ¬ GENERATINGCFM THEN Macro _SGGetUserVideoCompressorList dc.w $2F3C dc.w $0004 dc.w $0124 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetUserVideoCompressorList ENDIF ; ** Sequence Grab SOUND CHANNEL Component Stuff ** ; ; Sound stuff ; ; ; pascal ComponentResult SGSetSoundInputDriver(SGChannel c, ConstStr255Param driverName) ; IF ¬ GENERATINGCFM THEN Macro _SGSetSoundInputDriver dc.w $2F3C dc.w $0004 dc.w $0100 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetSoundInputDriver ENDIF ; ; pascal long SGGetSoundInputDriver(SGChannel c) ; IF ¬ GENERATINGCFM THEN Macro _SGGetSoundInputDriver dc.w $2F3C dc.w $0000 dc.w $0101 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetSoundInputDriver ENDIF ; ; pascal ComponentResult SGSoundInputDriverChanged(SGChannel c) ; IF ¬ GENERATINGCFM THEN Macro _SGSoundInputDriverChanged dc.w $2F3C dc.w $0000 dc.w $0102 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSoundInputDriverChanged ENDIF ; ; pascal ComponentResult SGSetSoundRecordChunkSize(SGChannel c, long seconds) ; IF ¬ GENERATINGCFM THEN Macro _SGSetSoundRecordChunkSize dc.w $2F3C dc.w $0004 dc.w $0103 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetSoundRecordChunkSize ENDIF ; ; pascal long SGGetSoundRecordChunkSize(SGChannel c) ; IF ¬ GENERATINGCFM THEN Macro _SGGetSoundRecordChunkSize dc.w $2F3C dc.w $0000 dc.w $0104 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetSoundRecordChunkSize ENDIF ; ; pascal ComponentResult SGSetSoundInputRate(SGChannel c, Fixed rate) ; IF ¬ GENERATINGCFM THEN Macro _SGSetSoundInputRate dc.w $2F3C dc.w $0004 dc.w $0105 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetSoundInputRate ENDIF ; ; pascal Fixed SGGetSoundInputRate(SGChannel c) ; IF ¬ GENERATINGCFM THEN Macro _SGGetSoundInputRate dc.w $2F3C dc.w $0000 dc.w $0106 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetSoundInputRate ENDIF ; ; pascal ComponentResult SGSetSoundInputParameters(SGChannel c, short sampleSize, short numChannels, OSType compressionType) ; IF ¬ GENERATINGCFM THEN Macro _SGSetSoundInputParameters dc.w $2F3C dc.w $0008 dc.w $0107 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetSoundInputParameters ENDIF ; ; pascal ComponentResult SGGetSoundInputParameters(SGChannel c, short *sampleSize, short *numChannels, OSType *compressionType) ; IF ¬ GENERATINGCFM THEN Macro _SGGetSoundInputParameters dc.w $2F3C dc.w $000C dc.w $0108 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetSoundInputParameters ENDIF ; ; pascal ComponentResult SGSetAdditionalSoundRates(SGChannel c, Handle rates) ; IF ¬ GENERATINGCFM THEN Macro _SGSetAdditionalSoundRates dc.w $2F3C dc.w $0004 dc.w $0109 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetAdditionalSoundRates ENDIF ; ; pascal ComponentResult SGGetAdditionalSoundRates(SGChannel c, Handle *rates) ; IF ¬ GENERATINGCFM THEN Macro _SGGetAdditionalSoundRates dc.w $2F3C dc.w $0004 dc.w $010A moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetAdditionalSoundRates ENDIF ; ; Text stuff ; ; ; pascal ComponentResult SGSetFontName(SGChannel c, StringPtr pstr) ; IF ¬ GENERATINGCFM THEN Macro _SGSetFontName dc.w $2F3C dc.w $0004 dc.w $0100 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetFontName ENDIF ; ; pascal ComponentResult SGSetFontSize(SGChannel c, short fontSize) ; IF ¬ GENERATINGCFM THEN Macro _SGSetFontSize dc.w $2F3C dc.w $0002 dc.w $0101 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetFontSize ENDIF ; ; pascal ComponentResult SGSetTextForeColor(SGChannel c, RGBColor *theColor) ; IF ¬ GENERATINGCFM THEN Macro _SGSetTextForeColor dc.w $2F3C dc.w $0004 dc.w $0102 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetTextForeColor ENDIF ; ; pascal ComponentResult SGSetTextBackColor(SGChannel c, RGBColor *theColor) ; IF ¬ GENERATINGCFM THEN Macro _SGSetTextBackColor dc.w $2F3C dc.w $0004 dc.w $0103 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetTextBackColor ENDIF ; ; pascal ComponentResult SGSetJustification(SGChannel c, short just) ; IF ¬ GENERATINGCFM THEN Macro _SGSetJustification dc.w $2F3C dc.w $0002 dc.w $0104 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetJustification ENDIF ; ; pascal ComponentResult SGGetTextReturnToSpaceValue(SGChannel c, short *rettospace) ; IF ¬ GENERATINGCFM THEN Macro _SGGetTextReturnToSpaceValue dc.w $2F3C dc.w $0004 dc.w $0105 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetTextReturnToSpaceValue ENDIF ; ; pascal ComponentResult SGSetTextReturnToSpaceValue(SGChannel c, short rettospace) ; IF ¬ GENERATINGCFM THEN Macro _SGSetTextReturnToSpaceValue dc.w $2F3C dc.w $0002 dc.w $0106 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetTextReturnToSpaceValue ENDIF ; ; Music stuff ; ; ; pascal ComponentResult SGGetInstrument(SGChannel c, ToneDescription *td) ; IF ¬ GENERATINGCFM THEN Macro _SGGetInstrument dc.w $2F3C dc.w $0004 dc.w $0100 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGGetInstrument ENDIF ; ; pascal ComponentResult SGSetInstrument(SGChannel c, ToneDescription *td) ; IF ¬ GENERATINGCFM THEN Macro _SGSetInstrument dc.w $2F3C dc.w $0004 dc.w $0101 moveq #0,d0 dc.w $A82A EndM ELSE IMPORT_CFM_FUNCTION SGSetInstrument ENDIF sgChannelAtom EQU 'chan' sgChannelSettingsAtom EQU 'ctom' sgChannelDescription EQU 'cdsc' sgChannelSettings EQU 'cset' sgDeviceNameType EQU 'name' sgUsageType EQU 'use ' sgPlayFlagsType EQU 'plyf' sgClipType EQU 'clip' sgMatrixType EQU 'mtrx' sgVolumeType EQU 'volu' sgPanelSettingsAtom EQU 'ptom' sgPanelDescription EQU 'pdsc' sgPanelSettings EQU 'pset' sgcSoundCompressionType EQU 'scmp' sgcSoundSampleRateType EQU 'srat' sgcSoundChannelCountType EQU 'schn' sgcSoundSampleSizeType EQU 'ssiz' sgcSoundInputType EQU 'sinp' sgcSoundGainType EQU 'gain' sgcVideoHueType EQU 'hue ' sgcVideoSaturationType EQU 'satr' sgcVideoContrastType EQU 'trst' sgcVideoSharpnessType EQU 'shrp' sgcVideoBrigtnessType EQU 'brit' sgcVideoBlackLevelType EQU 'blkl' sgcVideoWhiteLevelType EQU 'whtl' sgcVideoInputType EQU 'vinp' sgcVideoFormatType EQU 'vstd' sgcVideoFilterType EQU 'vflt' sgcVideoRectType EQU 'vrct' sgcVideoDigitizerType EQU 'vdig' ; UPP call backs ENDIF ; __QUICKTIMECOMPONENTS__